TextDecoder : Object
Decodes sequences of bytes into Strings.
Constructors
new TextDecoder() : TextDecoder
Constructs a new TextDecoder that decodes UTF-8 strings.
Example:
RunResults:
Constructs a new TextDecoder. See https://encoding.spec.whatwg.org/#concept-encoding-get for valid label
values.
Example:
RunResults:
Instance Properties
encoding : String
Returns the effective encoding from the label
specified during construction of this
. See https://encoding.spec.whatwg.org/#concept-encoding-get for the mapping from label
values to encoding
s.
Example:
RunResults:
Instance Methods
decode 2 variants
Decodes the bytes from input
into a new String based on this.encoding
. If options.stream
is true
, this
will remember any partially consumed characters and apply them to the next decode()
call.
Example:
RunResults:
Decodes the bytes from input
into a new String based on this.encoding
. If options.stream
is true
, this
will remember any partially consumed characters and apply them to the next decode()
call.
Example:
RunResults:
Copyright © JavaScripture Contributors