用UTF8 ,source应该是这样的
common.button.0005=\u9589\u3058\u308B
这种乱麻就对了!
common.button.0005=\u9589\u3058\u308B
这种乱麻就对了!
解决方案 »
- 那么多的双引号。。。
- JSP动态页面静态化有什么好用的工具没?该怎么做?
- 高手帮我把这几个循环弄成递归啦
- (200分)Java如何调用C的动态链接库--求助ing?
- j2ee的安全验证机制web.xml文件配置!如何去象.net中的配置达到这样的安全验证机制!如何去配置web.xml文件!??
- javascript程序出了小问题,求助
- 请问返回值到底是各什么意思啊有什么用啊???
- 求大神解答启动eclipse web 项目报错原因
- Tomcat+hibernate,/hibernate.cfg.xml not found
- 多个主健情况下的查询。hibernate
- 如何在Struts的Action中调用servlet中的方法?
- tomcat 80端口配置问题,在线等!!!!!
可以将消息资源文件保存为汉字的插件Please choose from the screen of Eclipse with "Help" ->"Software Updates" -> "Update Manager". An 'Update Manager' opens.
In the "Feature Updates" view at the lower left of an 'Update Manager', please carry out the right click of the "Sites to Visit", and create a site book by "New" -> "Site Book...".
- The book to create should input the following "URL" and should push an "Finish" button.
Name: Arbitrary input
URL : http://propedit.sourceforge.jp/eclipse/updates/
Book type: Eclipse update site
If a site book is created, the book created at the bottom of "Feature Updates" will appear.
A click of "jp.gr.java_conf.ussiy.app.propedit.eclipse.feature.PropertiesEditorFeature x.x.x" displays a preview on a right window. Since the button "Install Now" is in around the lower right, please click.
Since an installation wizard starts, please click a "Next" button rapidly.
"You will need to restart the workbench for the changes to take effect. Would you like to restart now?" is displayed. Please reboot Eclipse according to a dialog.
不光properties,有时侯JSP,java等也会有乱码,如果Eclipse的编码是你想要的,那么这些文件的只能重新再编辑一遍啦
如何安装,请参考http://propedit.sourceforge.jp/howto_eclipseplugin_install_en.html。过程很简单。
实际,按修改Eclipse首选项里JSP保存文件编码方法保存成UTF确实能在Eclipse中使得不会出现乱码,但如果是Struts的资源属性文件,被读取到jsp页面上时,仍然会是乱码,只是,会是另一些乱码,这是因为java对文件进行了2次编码。有的人提出用JDK自带的native2ascii进行编码转换,而这样会显得比较麻烦。所以,最好的办法就是使用PropertiesEditor,它会使你再不为properties属性文件中文乱码而烦心。