The character encodings currently supported by Node.js include:
-
'ascii' - For 7-bit ASCII data only. This encoding is fast and will strip the high bit if set.
-
'utf8' - Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
-
'utf16le' - 2 or 4 bytes, little-endian encoded Unicode characters. Surrogate pairs (U+10000 to U+10FFFF) are supported.