Back to Content

TextEncoder: encoding property

files/en-us/web/api/textencoder/encoding/index.md

latest419 B
Original Source

{{APIRef("Encoding API")}}{{AvailableInWorkers}}

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

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The {{DOMxRef("TextEncoder")}} interface it belongs to.