IntelliJ IDEA控制台问题 [英] IntelliJ IDEA console issue
问题描述
在我的旧驱动器中,我能够在控制台中打印(system.out.println)外语,但没有任何问题,但在重新安装后,我的控制台无法识别文本,并且我得到这样的输出
???? |
???? ?? _ ??????? - ???
...:
?? - ?? ? 1-1?
我不认为它是由于我的来源的任何错误,有没有办法配置我的IDE能够识别这个文本(在这种情况下,tamil,但我需要支持大量的语言)
提前感谢
Sumal。
提出的解决方案不适用于我。即使我已经设置了IDE编码&在Idea的设置中将项目编码为UTF-8,控制台继续显示不正确的字符。所以对于同样情况下的其他人,我要发布一个为我工作的解决方案。
你需要找到可执行文件的想法。在Windows上,它可能位于C:\Program Files(x86)\JetBrains\IntelliJ IDEA 14.1.5\bin下。在文件idea.exe.vmoptions中,您需要添加以下行:
-Dfile.encoding = UTF-8
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.
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
这篇关于IntelliJ IDEA控制台问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!