这些字节代表单词" hi"在UTF-32LE中:
FF FE 00 00 68 00 00 00 69 00 00 00
然而,这就是记事本显示的内容:
答案 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