# Encoding

> The TextEncoder, TextDecoder, TextEncoderStream, and TextDecoderStream globals.

`TextEncoder`, `TextDecoder`, `TextEncoderStream`, and `TextDecoderStream` are globals and follow the
[Encoding Standard](https://encoding.spec.whatwg.org/). `TextDecoder` accepts the standard labels for UTF-8, UTF-16,
the legacy single-byte encodings, and the CJK encodings; an unknown label throws `RangeError`.
