HP-UX下字符集转换
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
- tedabc's blog
- Log in or register to post comments
- 7168 reads