Available on HTML5
TextDecoder interface represents a decoder for a specific method, that is a specific character encoding, like
gbk, ... A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see
StringView – a C-like representation of strings based on typed arrays.
DOMString containing the name of the decoder, that is a string describing the method the
TextDecoder will use.