eclipse properties中文乱码问题

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

解决办法:

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

 

猜你喜欢

转载自guwq2014.iteye.com/blog/2421912