detectEncoding
Detects the encoding of bytes.
This supports:
- UTF-8 (default)
- UTF-16LE/UTF-16BE (BOM and a minimal XML prolog heuristic)
Parameters
bytes | Input byte sequence. |
Returns
The detected encoding.
Detects the encoding of bytes.
This supports:
bytes | Input byte sequence. |