`
- 浏览:
1536394 次
- 性别:
- 来自:
北京
-
Save could not be completed. Eclipse国际化的问题解决
http://b.qzone.qq.com/cgi-bin/blognew/simpleqzone_blog_data?hostuin=277037916&r=0&idm=imgcache.qq.com&bdm=b.qzone.qq.com&mdm=m.qzone.qq.com&blogid=1270016534&numperpage=15
在新建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插件就可以自己安装一些
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
The operation cannot be completed. See the details. Cannot complete the install because one or more required items could not be found. Software currently installed: Shared profile 1.0.0....
贪吃蛇C语言实现,无偿版在博客里,想捐赠的可以直接用积分购买
triglavian-completed.otf
fluent 教程 解决fluent常见的问题,在fluent学习过程中很有用处
第6章 基于指针的程序设计 - 2-completed.ppt
subversion eclipse connector
【D823】完成后的,仅供参考 !
FMC纸塑成型系统操作规程- 40# Completed
FMC纸塑成型系统操作规程- 48# Completed
Enhanced Class Decompiler是Eclipse\的插件。它将JD、JAD、Fernflower、CFR和Procyon与Eclipse IDE无缝集成。它在调试过程中显示所有Java源代码,即使您没有所有这些Java源代码。您可以直接调试这些类文件而不需要...
All the maintenance work should be carried out and completed by professional staff. Without permission, private maintenance is not allowed to avoid that electric shock occurs. 1.7 Installation of the...
适合所有平台的eclipse svn connctors!适合所有平台的eclipse svn connctors!
can be used to force mksquashfs to not compress inodes/directories and data respectively. Giving both options generates an uncompressed filesystem. The -le and -be options can be used to force ...
Myeclipse破解的正确方法带...对于用网上盛传方法破解失败的情况比如出现“Product activation must be completed within 5 days”的提示的 可用该包中pdf提供的方法破解成功 本人亲测绝对可用 希望能解决你们的问题
用ophcrack 获取登录密码所所必备的彩虹表。 彩虹表工具使用讲解 需要软件:ophcrack和彩虹表 1 安装ophcrack 2 选择彩虹表[彩虹表要放到英文目录下] 3 把hash导入破解
CS188 实验3 深度学习completed answer.zip
图标周围的颜色边框的含义: - Search completed. Results found. Search completed. Results found. - Search completed. Results not found. Search completed. Results not found. - No access to search - ...
彩虹字典Completed Rainbow Tables
Click the Check Results icon to verify all assessed items are successfully completed. Create scenarios in Simulation mode to test the above security policies. 3. Using the packet tracer inspect tool ...
Earlier versions of Delphi and C++ Builder will not be supported. If you need Delphi 3 or C++ Builder 3 support you will have to revert to version 3.7 of the Drag and Drop Component Suite. The ...