TextEncoder.encoding

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

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

It can only have the following value 'utf-8'.

Syntax

b = encoder.encoding;

Specifications

Specification Status Comment
Encoding
The definition of 'TextEncoder.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. Firefox 18 implemented an earlier and slightly different version of the specification.

See also

Document Tags and Contributors

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