WHATWG 支持的编码


根据 WHATWG 编码标准TextDecoder API 支持的编码在下表中列出。 对于每种编码,可以使用一个或多个别名。

不同的 Node.js 构建配置支持不同的编码集。

Per the WHATWG Encoding Standard, the encodings supported by the TextDecoder API are outlined in the tables below. For each encoding, one or more aliases may be used.

Different Node.js build configurations support different sets of encodings. While a very basic set of encodings is supported even on Node.js builds without ICU enabled, support for some encodings is provided only when Node.js is built with ICU and using the full ICU data (see Internationalization).