[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/TextEncoder [Back]  [Original]

TextEncoder: TextEncoder() constructor - Web APIs | MDN

TextEncoder: TextEncoder() constructor

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since January 2020.

Note: This feature is available in Web Workers.

The TextEncoder() constructor returns a newly created TextEncoder object.

In this article

Syntax

js
new TextEncoder()

Parameters

None.

Specifications

Specification
Encoding
# ref-for-dom-textencoder

Browser compatibility

See also


Web Proxy Viewer  |  New URL  |  Original Page