My laptop suffered a hard drive failure and i had to re-install IntelliJ and windows on a new hard drive. In my old drive i was able to print (system.out.println) foreign la
Check if you have selected an IDE encoding that supports foreign languages.
Settings → File Encoding → Project Encoding → IDE Encoding
There, select UTF-8
.
For x64 version of the Executable, you have to find the file idea64.exe.vmoptions instead, and add the line -Dfile.encoding=UTF-8
as others mentioned.
The proposed solution wasn't working for me. Even though I've set the IDE encoding & Project encoding to UTF-8 in Idea's Settings, the console continued to not display properly the characters. So for other people in the same situation I'm going to post another solution which worked for me.
You need to find the idea executable file. On Windows it's probably under "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.5\bin". In the file "idea.exe.vmoptions" you need to add the following line:
-Dfile.encoding=UTF-8