java - Intellij Idea incorrect encoding in console output -
it seems crazy, can't broken encoding in console of intellij idea.
things made overcome this:
- set -dfile.encoding=utf-8 , -dfile.encoding=utf-8 in both idea.exe.vmoptions , idea64.exe.vmoptions (i use 64 bit version though).
- added -dfile.encoding=utf-8 , -dfile.encoding=utf-8 run/debug configuration of application.
- changed settings > editor > file encodings ide encoding/project encoding/default encoding property files utf-8.
having done there still no luck , symbols not shown correctly in console. tried debug java.io.printstream#println(java.lang.string) method , found out system.out.textout.out.se.cs equals windows-1251. no idea value coming from.
this issue have been bothering me long period of time , unable find in web me.
thanks in advance help.
the reason why not work can found placing breakpoint on system.out.print()
call. when breakpoint hits, can add system.out watches, , can see system.out.textout.out.se.cs
set windows-1252 or unsuitable.
the setting magically worked me in settings -> editor -> file encodings -> project encoding. need set "utf-8".
then, unicode characters display on console, , 1 more quick debugger shows value of system.out.textout.out.se.cs
has turned utf-8.
if no success @ using this, try , take @ this step step guide. need apply settings application logic entirely.
Comments
Post a Comment