W3cubDocs

/Web APIs

TextEncoder: encoding property

The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.

It can only have the following value utf-8.

Value

A string with the value utf-8.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
encoding 38 79 18 No 25 10.1 38 38 18 25 10.3 3.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding