Skip to main content
Version: 3.28.0

TextDecoder.encoding

The TextDecoder.encoding read-only property returns a string containing the name of the decoding algorithm used by the specific decoder object.

The encoding is set by the constructor label parameter, and defaults to utf-8.

Value

A lower-cased ASCII string, which can be one of the following values: