MDN self-hosted library · e01.org

TextEncoder: encoding property

Encoding API

no runnable cells web-api-instance-property upstream source

Encoding API

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

Browser compatibility

See also

  • The TextEncoder interface it belongs to.