Save could not be completed. Eclipse国际化的问题解决
来源:互联网 发布:视频剪辑软件怎么用 编辑:程序博客网 时间:2024/06/06 15:02
在新建jsp文件中输入中文字符,保存时报错(编码问题),在论坛找到了该篇文章,解决了问题,故将该片转载。
要将jsp文件的<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>中的pageEncoding属性中的内容要和解决办法一中默认编码方式一致。否则会出现乱码。
原文如下:
MyEclipse中新建一个MessageBundle.properties文件,如果输入中文保存时就会提示错误: 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.
解决办法一:
打开Eclipse的Preferences,选择General->Content Types,然后修改右面的Text下的Java Properites File的默认编码方式为UTF-8,点击Update就可以了!
解决方法二:
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插件就可以自己安装一些
FROM: http://macleo.javaeye.com/blog/661289
- Save could not be completed. Eclipse国际化的问题解决
- Save could not be completed.MyEclipse国际化的问题解决(转摘)
- Save could not be completed.MyEclipse国际化的问题解决
- Save could not be completed.MyEclipse国际化的问题解决
- Save could not be completed.MyEclipse国际化的问题解决
- 用eclipse save could not be completed
- JAVA _Save could not be completed.MyEclipse国际化的问题解决
- save could not be completed
- Save could not be completed!
- Save could not be completed
- MyEclipse中“Save could not be completed”问题解决
- MyEclipse中“Save could not be completed”问题解决
- MyEclipse中“Save could not be completed”问题解决
- MyEclipse中“Save could not be completed”问题解决!
- eclipse提示错误:save could not be completed
- Carbide C++ 出现Save could not be completed!的解决方法
- Save could not be completed. 问题的解决办法
- MyEclipse中Save could not be completed
- 初学JAVA
- sendmessage and postmessage
- Linux下Oracle10g安装笔记
- SendMessage、PostMessage原理
- JAVA正则表达式高级用法(分组与捕获)
- Save could not be completed. Eclipse国际化的问题解决
- 贝塞尔曲线生成算法
- grails中多重查询及其显示方法
- 一些用Flash写的缓动函数
- 用 YUI Compressor 压缩和混淆 JS 和 CSS
- vi 命令 用法
- C#接口事件的实现解析
- SQL Server中的Image数据类型的操作
- js动态添加和删除一行