# recode UTF-16..UTF-8 file.txt 从UTF-16转换到UTF-8
# recode UTF-8..UTF-16 file.txt 从UTF-8转换到UTF-16
看一个“文”字在utf8和gbk字符集中的映射:
# echo -n 文 | recode utf8..dump
UCS2 Mne Description
6587
# echo -n 文 | recode gbk..dump
UCS2 Mne Description
93C2
recode: Invalid input in step `GB18030..ISO-10646-UCS-2'
阅读(1274) | 评论(0) | 转发(0) |