dom / latest / textdecoder / encoding.html /

TextDecoder.encoding

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The TextDecoder.encoding read-only property returns a DOMString containing the name of the decoding algorithm used by the specific decoder.

It can be one of the following values:

Value

A string.

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
19
18
Implemented a slightly different version of the spec.
No
25
10.1
38
38
19
18
Implemented a slightly different version of the spec.
25
10.3
3.0

See also

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