MyEclipse中新建一个jsp文件,如果输入中文保存时就会提示错误: Save could not be completed. Reason:

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. 以前还能保存呢,今天就突然出这错了望高手帮忙解决下,能解决的话给高分

你刚学习吧
以后注意点就是了。
把第一行最后面的ISO-8859-1改成GBK或者UTF-8就成了。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-07-07
右键点这个文件,选最后属性,里面有个默认字符集,改成UTF-8
第2个回答  2010-07-07
正常。因为你的jsp默认是iso-8859-1那时英文编码不识别中文,改成gbk或是utf8
第3个回答  2010-07-07
Windows--Preferences--Files and Editors--JSP的Encoding改成你需要格式,MyEclipse就会以这种字符集去编译你的文件。
JSP文件自身的格式说明也需要一致的修改。
第4个回答  2010-07-07
用MyEclipse—》Windows—》Preferences—》Files and Editors—》JSP,把编译改为UTF-8就好了
相似回答