`
XinTeng2012
  • 浏览: 94747 次
社区版块
存档分类
最新评论

解决问题Some characters cannot be mapped using 'ISO-8859-1' character encoding

 
阅读更多

突然好好的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.

查阅网上解决方案如下:

1.eclipse --> window -->Preferences --> General --> ContentTypes --> Test --> 单击 Java PropertiesFile,在底部出现 'Default edcodng:',改成utf-8或GBK,然后update.

如果上面问题解决了可以保存,但是页面出现乱码了,那就再改回来吧

使用第二种方案

2.在页面最顶头添加如下代码

<span style="font-family:Microsoft YaHei;font-size:14px;"><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%></span>

更好用的产品希望帮到你,链接地址

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics