It seems to be really crazy, but I can't do anything with broken encoding in the console of my IntelliJ IDEA.
Things I made to overcome this:
-Dfile.encoding=UTF-8
and -Dfile.encoding=UTF-8
in both idea.exe.vmoptions
and idea64.exe.vmoptions
(I use 64 bit version though).-Dfile.encoding=UTF-8
and -Dfile.encoding=UTF-8
to run/debug configuration of my application.Having all these done, there is still no luck and symbols are not shown correctly in the console. I tried to debug the java.io.PrintStream#println(java.lang.String)
method and found out that System.out.textOut.out.se.cs
equals to windows-1251. No idea where this value is coming from.
This issue has been bothering me for a long time and I was unable to find anything in the web that could help me.
UTF-8 Encoding in Notepad (Windows)Click File in the top-left corner of your screen. In the dialog which appears, select the following options: In the "Save as type" drop-down, select All Files. In the "Encoding" drop-down, select UTF-8.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | File Encodings. Select the encoding from the Default encoding for properties files list.
This works for me.
try
-Dconsole.encoding=UTF-8
instead of
-Dfile.encoding=UTF-8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With