Create a new text decoder
Optionalencoding: stringCharacter encoding (default: "utf-8")
Optionaloptions: TextDecoderOptionsDecoder options
ReadonlyencodingThe encoding name
ReadonlyfatalWhether fatal mode is enabled
ReadonlyignoreWhether BOM should be ignored
Decode binary data to string
Binary data to decode
Optionaloptions: TextDecodeOptionsDecode options
Decoded string
text.Decoder - Decodes binary data to strings Supports various character encodings via libiconv