Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
873 views
in Technique[技术] by (71.8m points)

encoding - IntelliJ IDEA console issue

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 languages in the console without any issues, but after the re-installation my console is not recognizing the text and i get an output like this

????????????? ???? |
??????????-??? ??_???????-???

?????? ???????:
?????: ?????????-?????
????????? ??-?? ? 1-1 ?

i dont think its due to any error in my source, is there any way to configure my IDE to be able to recognize this text ( tamil in this instance but i need to support a large number of languages )

Thanks in advance, Sumal.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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)JetBrainsIntelliJ IDEA 14.1.5in". In the file "idea.exe.vmoptions" you need to add the following line:

-Dfile.encoding=UTF-8

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...