`
carrot
  • 浏览: 160386 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

中文编码转Unicode

阅读更多

格式   native2ascii  所要转码文件 转码后文件

例:native2ascii ApplicationResources_zh.properties ApplicationResources_zh_CN.properties

转码形如:

index.heading=\u6b22\u8fce\u4f7f\u7528\u5730\u5740\u672c!
logon.title=\u70b9\u51fb\u8fd9\u91cc\u8fdb\u5165!

 

Unicode编码转中文  native2ascii -reverse -encoding utf8 所要转码文件 转码后文件

格式  native2ascii -reverse -encoding gb2312 所要转码文件 转码后文件

例:native2ascii  -reverse -encoding gb2312  ApplicationResources_unicode.properties ApplicationResources_cn.properties

转码形如:

index.heading=萝卜欢迎你!
logon.title=哈哈!

分享到:
评论
1 楼 cl1154781231 2011-09-01  
native2ascii -reverse -encoding utf8 所要转码文件 转码后文件

可以用,谢谢!

相关推荐

Global site tag (gtag.js) - Google Analytics