eclipse中 properties文件 不显示中文,显示的unicode编码

原因就是因为eclipse中 XXXX.properties文件默认的编码方式是iso-8859-1。

操作设置(文字表述)
1、window --> General --> Content Types -->(右边框中) 选择Text --> Java Properties Files(点击)。
2、会看见了该界面中的File association 中出现了 *.properties(locked) (点击选中) 。
3、会看见了该界面最下方的 Default encoding: iso-8859-14、将iso-8859-1 手动改成 UTF-85、点击右边的 update,点击 Apply and Close 按钮。

 

posted @ 2020-04-19 03:37  假程序猿  阅读(1329)  评论(0)    收藏  举报