In IDEA there is UTF-8 encoding, in IDEA console, when entering chcp, it gives out 866. If I change to IDEA for Ansi-II, it displays question marks and on UTF-8 there are some hieroglyphs.

  • reboot and restart tried? - Andrew Kachalin
  • Yes. The third day I suffer with it - Hovo
  • Try chcp 65001 and if you change the font, then put the "default" - Sergey Mitrofanov
  • Does not help. Everything is exactly in the window of applets hieroglyphs. maybe when javac Main.java already everything turns into hieroglyphs? I opened the Main.class file there are already hieroglyphs instead of text. And when I write in English letters in the file Main.class, it shows norms. - Hovo

1 answer 1

Very strange behavior.

Here are the settings

Settings

Here is the project - utf8 encoding. Console - 866

enter image description here

No additional options were made for the compiler.

enter image description here

All the letters in place.

enter image description here

  • And how do you run the applet? I create an applet.html file and on the command line write appletviewer applet.html. maybe I'm doing something wrong. but in IE does not start, swears at security. - Hovo
  • I run into Idea - I created a launch configuration (3 screens) and a green triangle button. And in 'applet.html' what encoding is specified? - Sergey Mitrofanov
  • in applet.html also UTF-8 - Hovo
  • it turned out, thanks! I did not create the configuration) - Hovo
  • one
    Appletviewer also has a -encoding option, -encoding is supposed to accept utf-8 . Well, -Jfile.encoding=utf-8 as an option. ( mstu.edu.ru/study/materials/java/pril_1.htm ) In your question, IDEA is an extra link as a component. Windows + cmd + appletviewer the right set of keywords. - Sergey Mitrofanov