Struts国际化资源文件中文转码的方法
1.先建立中文资源文件内容: app_temp.properties login=登陆: username=用户名: password=密码: ================================== 2.然后再写一个native2.bat批处理文件内容: native2ascii -encoding gb2312 app_temp.properties app_cn.properties ================================== 3.然后双击运行native2.bat批处理文件,你的目录下将出现app_cn.properties文件,内容为: login=/u767b/u9646: username=/u7528/u6237/u540d: password=/u5bc6/u7801: