1、GB2312转Unicode(UCS-2)
iconv -f hp15CN -t ucs2 ttt|od -h
2、GB2312转UTF8
iconv -f hp15CN -t utf8 ttt|od -h
参考/usr/lib/nls/iconv/config.iconv
及man iconv
hpux的hp15CN的编码是GB2312
"汉"的编码:
Unicode编码是6C 49
UTF8编码是E6 B1 89
GB2312、GBK、GB18030编码是BA BA
|
|
| 首页 | 论坛 | 博客 | 手册 | LVS英文站点 | |
HP-UX下字符集转换由 tedabc 在 周三, 2010-08-04 12:40 提交1、GB2312转Unicode(UCS-2) 2、GB2312转UTF8 参考/usr/lib/nls/iconv/config.iconv hpux的hp15CN的编码是GB2312 "汉"的编码: » tedabc的Blog | 发表新评论 | 1288 次阅读
回复 |
用户登录导航新的论坛主题在线用户当前共有 0 位注册用户 和 25 位访客 在线。
新进会员
|