您的位置:首页 > 编程语言 > Java开发

myeclipse中.properties文件不能输入中文的解决办法

2015-05-06 14:40 585 查看
刚才用struts2弄国际化,在属性文件输入中文不嫩正常显示,解决方法如下,亲测可以使用

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

Eclipse/MyEclipse中资源文件(*.properties)中输入中文保存错误解决方法,不是乱码 每个字都是/u1234这种形式的。。。
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息