java的资源文件一个设计目的就是方便的提供多语言支持,可是它本身对unicode的支持是十分搞笑的.很多人见到这样的资源文件都会觉得很熟悉吧:
【程序编程相关:JAVA与数据库连接方法(一)】 【推荐阅读:如何在UNIX下实现COM组件的运行环境】 【扩展信息:WebForm的Grid页面页脚Drop】tongren.oa.system.user.usernameexists=\u7528\u6237\u540d\u5df2\u7ecf\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u4e00\u4e2a\u7528\u6237\u540d
tongren.oa.system.role.rolenameexists=\u89d2\u8272\u540d\u5df2\u7ecf\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u4e00\u4e2a\u89d2\u8272\u540d tongren.oa.system.role.userassignedtorole=\u6307\u5b9a\u89d2\u8272\u4e0d\u80fd\u5220\u9664\uff0c\u56e0\u4e3a\u7528\u6237{0}\u62e5\u6709\u8fd9\u4e2a\u89d2\u8272我的天,这要怎么读?还要用工具把它转回unicode才能看到汉字,修改完了还要转回去?
昨天下午抽了一点时间写了一个hta工具来编辑资源文件,现在终于可以直接修改,自动转换保存了.直接把下面的代码保存为一个后缀为hta的文件即可:<html>
<head> <title></title> </head> <body> <input type=file onchange="getfile()" id=fileselector> <script language="javascript"> <!-- var fso; var openfileforreading = 1 var openfileforwriting = 2 var openfileforappending = 8 var srcfilepath=""; fso = new activexobject("scripting.filesystemobject");... 下一页