码迷,mamicode.com
首页 > 其他好文 > 详细

properties文件不能保存中文问题(转)

时间:2014-08-20 10:25:16      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:blog   http   java   文件   ar   art   问题   log   

原文地址:http://blog.csdn.net/go372900589/article/details/6521865

 

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就可以了!

properties文件不能保存中文问题(转),布布扣,bubuko.com

properties文件不能保存中文问题(转)

标签:blog   http   java   文件   ar   art   问题   log   

原文地址:http://www.cnblogs.com/m3Lee/p/3923908.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!