0xFEFF
0xFEFF is the hexadecimal encoding of the Unicode code point U+FEFF. In Unicode, this code point is named ZERO WIDTH NO-BREAK SPACE (ZWNBSP), and it has a special role as the byte order mark (BOM) in text streams. The BOM is used to indicate the encoding form and endianness of the data, particularly for UTF-16 and UTF-32.
As a BOM, 0xFEFF signals endianness at the start of a file or stream. In UTF-16, the
When not used as a BOM, U+FEFF is the zero-width no-break space character. It is a formatting
Distinctions and cautions: 0xFFFE is the byte-reversed pattern commonly associated with an invalid or misinterpreted BOM
In summary, 0xFEFF denotes a code point central to encoding detection (as a BOM) and, in other