在myeclipse新建jsp如果输入中文无法保存问题
发布:liao | 发布时间: 2008年12月12日Save could not be completed
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 the characters which are not supported by the “ISO-8859-1“ character encoding.
解决方法 1 应该使用eclipse的jinto插件编辑,会自动调用java的native2ascii把文件转码。
jinto插件下载:http://www.guh-software.de/jinto.html
2 2 Eclipse-->Preferences...-->在“type filter text“栏中输入”Content Types“查找,然后在选择
右边的Text下边相应的文件后缀名,修改其编码就可。
然后手动调用native2ascii编译MessageBUndle_zh_CN.proterites文件
附: Eclipse下安装Properties Editor
在eclipse下"帮助"---"软件更新"--"查找并安装"--"搜索要安装的新功能部件" ---"下一步"---"新建远程站点"---
填写"名称":Properties Editor;
URL为:http://propedit.sourceforge.jp/eclipse/updates/点完成,
让它自己下载插件..
找到合适的Properties Editor安装,这一个插件是减少转化为utf-8格式,在struts自动转换的.
这样,eclipse插件就可以自己安装一些
- 相关文章:
JavaScript使用cookie (2008-9-9 14:22:47)
15 Days of jQuery(1) (2008-6-29 15:54:11)
15天学会jQuery(0) (2008-6-29 15:50:29)
JSP+XML实现网页内容动态显示的方案 (2008-6-12 2:16:38)
图片验证码 (2008-5-2 2:14:8)
用js+jsp实现拉列表 (2008-3-25 9:39:39)
从java到structs (2008-3-25 9:37:49)
jsp中如何通过API方式获取jstl的变量 (2008-3-25 9:36:9)
什么是JSP技术 (2008-3-15 22:30:6)
Servlet容器工作原理 (2008-3-9 23:41:19)
发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。





