MDN Web Docs

Constructor

TextEncoderStream()

Creates a new TextEncoderStream object.

Instance properties

TextEncoderStream.encoding Read only

Always returns "utf-8".

TextEncoderStream.readable Read only

Returns the ReadableStream instance controlled by this object.

TextEncoderStream.writable Read only

Returns the WritableStream instance controlled by this object.

Examples

Examples of streaming structured data and HTML

Specifications

Specification
Encoding
# interface-textencoderstream

Browser compatibility

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 ↗