记事本可以读取UTF-32吗?

时间:2015-02-16 07:47:22

标签: unicode windows-7 notepad utf-32

这些字节代表单词" hi"在UTF-32LE中:

FF FE 00 00 68 00 00 00 69 00 00 00

然而,这就是记事本显示的内容:

enter image description here

1 个答案:

答案 0 :(得分:0)

记事本不支持UTF-32,仅支持ANSI,UTF-8和UTF-16。它将前2个字节解释为UTF-16LE BOM,而不是前4个字节作为UTF-32LE BOM,因此文件字节被解释为

FF FE 00 00 68 00 00 00 69 00 00 00

而不是

FF FE 00 00 68 00 00 00 69 00 00 00