Decodes a Uint8Array of bytes into a string using UTF-8 encoding.
Uint8Array
The decoded string representation of the input bytes.
const bytes = new Uint8Array([72, 101, 108, 108, 111]);const text = decodeTextContent(bytes); // → "Hello"
TextDecoder
The byte array to decode.
Generated using TypeDoc
Decodes a
Uint8Arrayof bytes into a string using UTF-8 encoding.Returns
The decoded string representation of the input bytes.
Example
Remarks
TextDecoderAPI with UTF-8 encoding.Uint8Arrayis not modified.