Some characters cannot be mapped using 'ISO-8859-1' character encoding
2013-03-25 14:56
423 查看
MyEclipse中新建一个jsp文件,如果输入中文保存时就会提示错误: Save could not be completed.Reason: some characters cannot be mapped using “ISO-8859-1“character encoding. Either change the encoding or remove thecharacters which are not supported by the “ISO-8859-1“ characterencoding.
几种解决方法
1.eclipse --> window --> Preferences--> General --> Content Types--> Test --> 单击 Java PropertiesFile,在底部出现 'Default edcodng:',改成utf-8或GBK,然后update. 虽然能保存,但还必须利用native2ascii 来转换一下,不然输出还是乱码.
2 应该使用eclipse的jinto插件编辑,会自动调用java的native2ascii把文件转码。
jinto插件下载:http://www.guh-software.de/jinto.html
附: Eclipse下安装Properties Editor
在eclipse下"帮助"---"软件更新"--"查找并安装"--"搜索要安装的新功能部件"---"下一步"---"新建远程站点"---
填写"名称":Properties Editor;
URL为:http://propedit.sourceforge.jp/eclipse/updates/点完成,
让它自己下载插件..
找到合适的Properties Editor安装,这一个插件是减少转化为utf-8格式,在struts自动转换的.
这样,eclipse插件就可以自己安装一些。
几种解决方法
1.eclipse --> window --> Preferences--> General --> Content Types--> Test --> 单击 Java PropertiesFile,在底部出现 'Default edcodng:',改成utf-8或GBK,然后update. 虽然能保存,但还必须利用native2ascii 来转换一下,不然输出还是乱码.
2 应该使用eclipse的jinto插件编辑,会自动调用java的native2ascii把文件转码。
jinto插件下载:http://www.guh-software.de/jinto.html
附: Eclipse下安装Properties Editor
在eclipse下"帮助"---"软件更新"--"查找并安装"--"搜索要安装的新功能部件"---"下一步"---"新建远程站点"---
填写"名称":Properties Editor;
URL为:http://propedit.sourceforge.jp/eclipse/updates/点完成,
让它自己下载插件..
找到合适的Properties Editor安装,这一个插件是减少转化为utf-8格式,在struts自动转换的.
这样,eclipse插件就可以自己安装一些。
相关文章推荐
- some characters cannot be mapped using"ISO-8859-1'/ GBK MYeclipse
- Some characters cannot be mapped using 'ISO-8859-1' character encoding
- Some characters cannot be mapped using 'ISO-8859-1' character encoding
- MyEclipse中:Some characters cannot be mapped using 'ISO-8859-1' character encoding
- Some characters cannot be mapped using 'ISO-8859-1' character encoding
- Some characters cannot be mapped using 'ISO-8859-1' character encoding
- Some characters cannot be mapped using 'ISO-8859-1'解决方案
- Some characters cannot be mapped using "ISO - 8859 -1" character encoding 解决方法
- Myeclipse - some characters cannot be mapped using "ISO-8859-1" charater encoding
- MyEclipse编辑js的时候出现some characters cannot be mapped using "ISO-8859-1" charater encoding
- myEclipse保存jsp文件时报错:some characters cannot be mapped using "ISO-8859-1" character encoding
- some characters cannot be mapped using"ISO-8859-1 (2012-06-09 17:55:05)
- 用MyEclipse写jsp时出现some characters acnnot be mapped using "ISO-8859-1"错误
- 用myeclipse修改文件是出现“some characters cannot be mapped using "iso-8859-1"character encoding
- Eclipse:some characters cannot be mapped using "ISO-8859-1" charater encoding
- some characters cannot be mapped using iso-8859-1 character encoding
- 解决问题Some characters cannot be mapped using 'ISO-8859-1' character encoding
- Save could not be completed. Reason: some characters cannot be mapped using “ISO-8859-1“ character encoding. Either cha
- some characters cannot be mapped using iso-8859-1 character encoding
- MyEclipse JSP乱码解决方法/some characters cannot be mapped using “ISO-8859-1”/jsp设置为UTF-8