略去导航.
主页
The image verification code you entered is incorrect.

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

回复

  • 允许 HTML标签: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 行和段被自动切分。
  • 你可以用[inline:xx] 标记来内嵌显示上传的文件或者图片。
更多格式化选项信息 Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.