eclipse 如何在eclipse中显示日文字符
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17742090/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to display Japanese character in eclipse
提问by Vinod
I am using eclipse Juno as Java IDE and in my java code comments and logging statement are in Japanese.
我使用 eclipse Juno 作为 Java IDE,在我的 Java 代码中,注释和日志语句是日语的。
eclipse is displaying junk character instead of correct Japanese characters. I followed this postto resolve the issue and made changes in eclipse.ini file. But now I am getting String literal is not properly closed by a double-quoteerror.
eclipse 显示垃圾字符而不是正确的日语字符。我按照 这篇文章解决了这个问题,并在 eclipse.ini 文件中进行了更改。但是现在我发现String 文字没有被双引号错误正确关闭。
回答by Ankur Lathi
You need to tell eclipse to use UTF-8 for its stdout console. You can set that by Window > Preferences > General > Workspace > Text File Encoding.
您需要告诉 eclipse 为其标准输出控制台使用 UTF-8。您可以通过 Window > Preferences > General > Workspace > Text File Encoding 进行设置。