ITeye博客

中文编码转Unicode

carrot · 2008-08-03 11:16 · Java技巧 · Markdown

格式   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)

  1. #1 楼 · cl1154781231 · 2011-09-01 11:40

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

    可以用,谢谢!

评论功能维护中,当前仅展示历史评论。