﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-leo8robin</title><link>http://www.blogjava.net/leo8robin/</link><description /><language>zh-cn</language><lastBuildDate>Thu, 07 May 2026 08:58:11 GMT</lastBuildDate><pubDate>Thu, 07 May 2026 08:58:11 GMT</pubDate><ttl>60</ttl><item><title>PropertiesEditor</title><link>http://www.blogjava.net/leo8robin/archive/2008/09/17/229365.html</link><dc:creator>leo8robin</dc:creator><author>leo8robin</author><pubDate>Wed, 17 Sep 2008 03:01:00 GMT</pubDate><guid>http://www.blogjava.net/leo8robin/archive/2008/09/17/229365.html</guid><wfw:comment>http://www.blogjava.net/leo8robin/comments/229365.html</wfw:comment><comments>http://www.blogjava.net/leo8robin/archive/2008/09/17/229365.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/leo8robin/comments/commentRss/229365.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/leo8robin/services/trackbacks/229365.html</trackback:ping><description><![CDATA[<div id="blog_text" class="cnt">
<p>使用eclipse的更新管理器，加入以下源地址:http://propedit.sourceforge.jp/eclipse/updates/<br />
<br />
选择支持eclipse3.x的版本．这个插件叫做PropertiesEditor.<br />
<br />
安装完这个插件并且重启eclipse后，会发现项目里所有的.properties文件都换成绿色'<font color="#00ff00">P</font>'图标了．双击打开.properties文件就可以直接输入国标化文本了，再也不需要手动native2ascii进行汉字的编码转换了．</p>
<p>.properties文件这时关联的编辑器就为PropertiesEditor,它可以以unicode的方式增加或者修改文件，根本看不到像
'\u4e2d'这样让人不安的内容．但是当用普通编辑器打开PropertiesEditor生成的含汉字的文件的时候，'\u4e2d1'这样的汉字
编码就会回来．</p>
<p>可以编辑资源文件中的中文，不用再看一堆Unicode码了。<br />
可用于eclipse 3.X<br />
使用方法：<br />
windows----&gt;Preferences----&gt; PropertiesEditor<br />
在Encode at reading a file中选US--ASCII<br />
这样在ApplicationResources.properties写中文,它会自动转换为ASCII;<br />
例：在ApplicationResources.properties上点右键,open with选PropertiesEditor就可以在ApplicationResources.properties写中文了</p>
</div>
<img src ="http://www.blogjava.net/leo8robin/aggbug/229365.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/leo8robin/" target="_blank">leo8robin</a> 2008-09-17 11:01 <a href="http://www.blogjava.net/leo8robin/archive/2008/09/17/229365.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>