How to print [Simplified] Chinese characters to Eclipse console?

≯℡__Kan透↙ 提交于 2019-12-05 11:35:39

Change the font for the Console to one which actually contains the Chinese characters you need to see.

here I copied your class and did a test.

if the .java file encoded with utf-8, it shows

中文

otherwise, (iso-8859-1 for example) it shows something like

中æ

so maybe you could try to set the encoding of your java source file to utf-8.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!