myeclipse 中的'ISO-8859-1'编码问题 写JS文件不能保存
在eclipse下建了个struts2项目,修改*.js文件时,输入中文,就不能保存.提示信息如下 :
"Some characters cannot be mapped using 'ISO-8859-1' character encoding. Either changethe encoding or remove the characters which are not supported by the 'ISO-8859-1' character encoding."
"Some characters cannot be mapped using 'ISO-8859-1' character encoding. Either changethe encoding or remove the characters which are not supported by the 'ISO-8859-1' character encoding."
解决方案:
将Window选项卡下面的Preferences …下的 Myeclipse --> Files and editors -->单击Javascript,在
右边出现的出现 'Encodng',改成UTF-8,然后Apply。
右边出现的出现 'Encodng',改成UTF-8,然后Apply。
本文介绍了解决MyEclipse中JavaScript文件因使用ISO-8859-1编码无法保存中文字符的问题。通过调整设置为UTF-8编码,可以避免此类错误并确保中文字符正确显示。
140

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



