ECLIPSE中编码错误 SOME CHARACTER CAN NOT MAPPED USING "ISO-8859-1" CHARACTE
时间:2010-08-16 来源:信封
Eclipse里写一个properties的文件时,里面要输入中文,居然出现发如下提示错误:
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/MyEclipse--> window --> Preferences --> General --> Content Types --> Test -->Java Properties File,在底部出现 'Default edcodng:',改成utf-8或GBK,然后update.一定要update一下,然后就可以保存有中文文字的properties文件了。
如果是js文件的话选择JavaScript。
Tag标签: CHARACTER,MAPPED,ISO-8859-1
相关阅读 更多 +