MDN Web Docs

Interfaces

TextDecoder

A decoder to convert a byte array containing a particular encoding into a JavaScript string.

TextDecoderStream

A decoder to convert a byte stream containing a particular encoding into a stream of JavaScript strings.

TextEncoder

An encoder to convert a JavaScript string into an array of bytes representing the UTF-8 encoding of the string.

TextEncoderStream

An encoder to convert a stream of JavaScript strings into a stream of bytes representing the UTF-8 encoding of the strings.

Specifications

Specification
Encoding

Browser compatibility

api.TextDecoder

api.TextEncoder

api.TextEncoderStream

api.TextDecoderStream

See also

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗