Need your help. I have an annoying issue: thai symbols can't be printed pretty in Netbeans 7.2 output window:
Output after System.out.println(...); ???????????????????[TH_WORD]
I changed netbeans.conf as mentioned, it doesn't help; I changed project properties->Sources encoding to UTF-8 and sources looks good, all thai symbols in sources are correctly printable. But how to change settings of NB output window?
Windows 7 64bit, Netbeans 7.2 (I run NB as "C:\Program Files (x86)\NetBeans 7.2\bin\netbeans64.exe" --locale en_US)
For Azerbaijani language I tried this:
System.setOut(new PrintStream(System.out, true, "UTF8"));into my code. After this correction it changed ? marks into different symbols. The word tədarük before displayed as t?dar?k. But now it standed tЙ™darГјk-Dfile.encoding=utf-8into the Run arguments on Project properties, no way-Duser.language=az, result was the sameMonospacedfont intoArial, nothing changedIt did not help. Only after changing Netbeans config it worked. I opened netbeans.conf, in my case it was in C:\Program Files\NetBeans 7.4\etc folder, on linux it'll /usr/local/netbeans-7.4/etc/netbeans.conf
I added
-J-Dfile.encoding=UTF-8into the end ofnetbeans_default_optionsjust before the quotation mark. Restarted NetBeans. Now it works even withMonospacedfont and without setting-Duser.languageparam.So I needed only two things.
-J-Dfile.encoding=UTF-8intonetbeans_default_optionsin netbeans.confSystem.setOut(new PrintStream(System.out, true, "UTF8"));