当前页面: 开发资料首页 → Eclipse 专题 → 利用Eclipse编辑中文资源文件
利用Eclipse编辑中文资源文件
摘要: 利用Eclipse编辑中文资源文件
既然生为中国人,就没有什么好抱怨的了,遇到编码的问题,那只有解决它了。 如果经常使用Struts,并做过国际化操作的人来说,对于中文资源文件的处理应该不会感到陌生的。比如下面两个文件,一个是英文的,一个是中文的。对于英文的,一切照常;对于中文的,一般需要用JDK的native2ascii工具进行转换,
<table bordercolor="#000000" cellspacing="0" cellpadding="4" width="70%" border="0">
<tr><td style="FONT-WEIGHT: bold; FONT-SIZE: 14px; BORDER-BOTTOM: rgb(51,51,204) thin inset; FONT-STYLE: italic; FONT-FAMILY: Courier New" valign="top" width="100%" bgcolor="#cccccc" height="16">application_en.properties</td></tr><tr><td style="FONT-SIZE: 12px; BORDER-TOP-STYLE: none; BORDER-TOP-COLOR: rgb(236,233,216); FONT-FAMILY: Courier New" valign="top" width="100%" bgcolor="#e2e2e2"># Resources for the Hello sample application
hello.title=A first Struts program
hello.prompt.user=Please enter a UserName
hello.page.hello=Hello
hello.page.wellocome=Wellcome to Blog of Javamxj</td></tr>
</table>
<table bordercolor="#000000" cellspacing="0" cellpadding="4" width="70%" border="0">
<tr><td style="FONT-WEIGHT: bold; FONT-SIZE: 14px; BORDER-BOTTOM: rgb(51,51,204) thin inset; FONT-STYLE: italic; FONT-FAMILY: Courier New" valign="top" width="100%" bgcolor="#cccccc" height="16">application_zh_CN.properties</td></tr><tr><td style="FONT-SIZE: 12px; BORDER-TOP-STYLE: none; BORDER-TOP-COLOR: rgb(236,233,216); FONT-FAMILY: Courier New" valign="top" width="100%" bgcolor="#e2e2e2"># Hello实例使用的资源文件
hello.title=第一个Struts应用
hello.prompt.user=请输入用户名
hello.page.hello=你好
hello.page.wellocome=欢迎来到Javamxj的Blog</td></tr>
</table>