WHATWG Encoding Standard TextDecoder (global).

Also available via js.node.util.TextDecoder.

See also:

Constructor

new(?label:String, ?options:TextDecoderOptions)

Variables

read onlyencoding:String

read onlyfatal:Bool

read onlyignoreBOM:Bool

Methods

decode(?input:EitherType<ArrayBuffer, ArrayBufferView>, ?options:{stream:Null<Bool>}):String

Decodes input and returns a string. When stream is true, incomplete byte sequences may be buffered until a subsequent decode call.