This project will return the encoding associated with a sequence of Unicode byte-order-mark (BOM) bytes. This sequence is typically used to identify the encoding of a document and/or the byte-order of a document encoded with a multibyte encoding.
This only works for encodings that have an associated BOM byte-sequence. For raw-text encoded in an encoding that supports a BOM, it should be found at the very beginning of the document. If there is a data-structure where Unicode- encoded text is embedded within it, the BOM bytes, if supported, may be found as a field or property.
For more information, see the Unicode website.