class TextEncoder

Properties

readonly
encoding: string

Returns "utf-8".

readonly
[Symbol.toStringTag]: string

Methods

encode(input?: string): Uint8Array

Returns the result of running UTF-8's encoder.

encodeInto(input: string, dest: Uint8Array): { read: number; written: number; }