当前位置: 代码迷 >> Eclipse >> eclipse properties中文乱码有关问题
  详细解决方案

eclipse properties中文乱码有关问题

热度:2144   发布时间:2018-05-15 21:59:56.0
eclipse properties中文乱码问题

在eclipse中打开properties文件时,有时会出现中文乱码问题。

解决办法:

菜单——>Preferences——>General——>ContentTypes——>Text——>Java Properties File,设置Default encoding,把下面的ISO-8859-1改为UTF-8或者GBK(推荐UTF-8),然后update,如下图所示。

?

?

?

  相关解决方案