<p>问题描述:<span class="Apple-style-span" style="font-family: Verdana, 宋体, 新宋体, sans-serif; line-height: 23px; font-size: 14px; ">Eclipse中新建一个jsp文件,如果输入中文保存时就会提示错误: 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.<br>

解决方法:eclipse --> window --> Preferences --> General --> Content Types --> Text --> 单击 JSP,在底部出现 'Default edcodng:',改成utf-8或GBK,然后update。

如果再碰到其他文件也因为编码问题不能保存,也可以类似上述方法,选中相应的条目(而不是JSP),修改其默认编码格式。