TextDecoder.encoding

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:

Syntax

b = decoder.decoding;

Specifications

Specification Status Comment
Encoding
The definition of 'TextDecoder.encoding' in that specification.
Living Standard Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support38 ?

19

181

No25 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3838 ?

19

181

? No ?

1. Implemented a slightly different version of the spec.

See also

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, realityking, Reachmeatshivam, teoli
Last updated by: fscholz,