英文:
The Java Eclipse Console dont show the correct French characteres
问题
我正在使用Eclipse IDE 2022-09(4.25.0),当我打印法文文本,如Périneau时,控制台返回P�rineau。有什么办法可以得到良好的输出?
英文:
I’m using Eclipse IDE 2022-09 (4.25.0) and when I print a French text like Périneau, the console return P�rineau.
example:
String str = "Périneau";
System.out.println(str);
console:
P�rineau
Is there something that I can do to have a good output?
答案1
得分: 1
You'll need to switch to "UTF-8".
> 编码
>
> 设置此启动分配的控制台的编码。如果选择__默认__,启动将继承来自工作区首选项页的当前文本文件编码设置。或者可以为此启动选择不同的编码。
英文:
You'll need to switch to "UTF-8".
Common Tab (Help - Eclipse Platform).
> Encoding
>
> Sets the encoding for the console allocated for this launch. If Default is selected the launch will inherit the current Text file encoding setting from the Workspace preference page. Or a different encoding can be selected for this launch.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论