用UTF8 ,source应该是这样的
common.button.0005=\u9589\u3058\u308B
这种乱麻就对了!

解决方案 »

  1.   

    可以安装插件编辑properties
    可以将消息资源文件保存为汉字的插件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.
      

  2.   

    编辑properties时的编码和Eclipse编码不一致
    不光properties,有时侯JSP,java等也会有乱码,如果Eclipse的编码是你想要的,那么这些文件的只能重新再编辑一遍啦
      

  3.   

    PropertiesEditor比较好的解决了这个完题,你可以到http://www.learnjava.cn/opensource/ShowSoftDown.asp?UrlID=1&SoftID=206 下载Eclipse的插件。
    如何安装,请参考http://propedit.sourceforge.jp/howto_eclipseplugin_install_en.html。过程很简单。
    实际,按修改Eclipse首选项里JSP保存文件编码方法保存成UTF确实能在Eclipse中使得不会出现乱码,但如果是Struts的资源属性文件,被读取到jsp页面上时,仍然会是乱码,只是,会是另一些乱码,这是因为java对文件进行了2次编码。有的人提出用JDK自带的native2ascii进行编码转换,而这样会显得比较麻烦。所以,最好的办法就是使用PropertiesEditor,它会使你再不为properties属性文件中文乱码而烦心。