TextEncoder.encoding
The TextEncoder.encoding read-only property returns a
DOMString containing the name of the encoding algorithm used by the
specific encoder.
It can only have the following value utf-8.
Syntax
b = encoder.encoding;
Specifications
| Specification |
|---|
| Encoding # dom-textencoder-encoding |
Browser compatibility
BCD tables only load in the browser
See also
- The
TextEncoderinterface it belongs to.