MyEclipse中新建一个MessageBundle.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 supported
by the "ISO-8859-1" character encoding.
解决办法:
打开Eclipse的Preferences,选择General->Content Types,然后修改右面的Text下的Java Properites File的默认编码方式为UTF-8,点击Update就可以了!
MyEclipse中新建一个MessageBundle.properties文件
MyEclipse中文乱码解决
最新推荐文章于 2024-09-20 10:26:17 发布
本文介绍了解决MyEclipse中新建MessageBundle.properties文件时出现的中文乱码问题。通过更改Eclipse的默认编码方式为UTF-8,可以避免因使用ISO-8859-1编码而导致的中文字符无法保存的问题。
5118

被折叠的 条评论
为什么被折叠?



