TextDecoderinterface TextDecoder {readonly encoding: string;readonly fatal: boolean;readonly ignoreBOM: boolean;decode(input?: BufferSource, options?: TextDecodeOptions): string;}var TextDecoder: {prototype: TextDecoder; new (label?: string, options?: TextDecoderOptions): TextDecoder; };§Properties§readonly encoding: string[src]Returns encoding's name, lowercased. §readonly fatal: boolean[src]Returns true if error mode is "fatal", and false otherwise. §readonly ignoreBOM: boolean[src]Returns true if ignore BOM flag is set, and false otherwise. §Methods§decode(input?: BufferSource, options?: TextDecodeOptions): string[src]Returns the result of running encoding's decoder.