Byte Order Mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream. Its code point is U+FEFF. BOM use is optional, and should appear at the start of the text stream, if used.
Encoding | Representation |
---|---|
UTF-8 | EF BB BF |
UTF-16 (BE) | FE FF |