Windows 记事本(Notepad.txt)里面
ANSI = Local (系统语言决定)
Unicode = UTF-16 LE
Unicode big endian = UTF-16 BE
UTF-8 = UTF-8 with BOM
没一个是正常写法……
Frequently Asked Questions
UTF-8, UTF-16, UTF-32 & BOM http://unicode.org/faq/utf_bom.html
Q. What are some of the differences between the UTFs?
A: The following table summarizes some of the properties of each of the UTFs.
Name | UTF-8 | UTF-16 | UTF-16BE | UTF-16LE | UTF-32 | UTF-32BE | UTF-32LE |
Smallest co | 0000 | 0000 | 0000 | 0000 | 0000 | 0000 | 0000 |
Largest co | 10FFFF | 10FFFF | 10FFFF | 10FFFF | 10FFFF | 10FFFF | 10FFFF |
Co | 8 bits | 16 bits | 16 bits | 16 bits | 32 bits | 32 bits | 32 bits |
Byte order | N/A | <BOM> | big-endian | little-endian | <BOM> | big-endian | little-endian |
Minimal bytes/character | 1 | 2 | 2 | 2 | 4 | 4 | 4 |
Maximal bytes/character | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
In the table <BOM> indicates that the byte order is determined by a byte order mark, if present at the beginning of the da
评论