web api instance property
TextEncoder: encoding property
Available in workers
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
It always has the value utf-8.
Value
A string with the value utf-8.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The
TextEncoderinterface it belongs to.