TextEncoder()
The TextEncoder()
constructor returns a newly created
TextEncoder
object that will generate a byte stream with UTF-8 encoding.
Syntax
new TextEncoder();
Parameters
None.
Specifications
Specification |
---|
Encoding # ref-for-dom-textencoder① |
Browser compatibility
BCD tables only load in the browser
See also
- The
TextEncoder
interface it belongs to.