首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

Eclipse/MyEclipse中资源文件(*properties)中输入中文保存异常解决办法

2013-02-19 
Eclipse/MyEclipse中资源文件(*.properties)中输入中文保存错误解决方法Eclipse中.properties文件,如果输

Eclipse/MyEclipse中资源文件(*.properties)中输入中文保存错误解决方法
Eclipse中.properties文件,如果输入中文保存时就会提示错误:

Save could not be completed.Reason:some characters cannot be mapped using "ISO-8859-1" character encoding.Either change the encoding or remove the characters which are not supportedby the "ISO-8859-1" character encoding.

解决办法:

打开Eclipse的Preferences,选择General->Content Types,然后修改右面的Text下的Java Properites File的默认编码方式为UTF-8,点击Update就可以了!

原文转自:http://blog.csdn.net/symgdwyh/article/details/2604919

热点排行