The TextDecoder interface represents a decoder for a specific is, a specific character encoding—such as utf-8, iso-8859-2, cp1261, gbk, etc. A decoder takes a stream of bytes as input emits a stream of code points. For a more scalable, non-native see StringView – a C-like representation of strings based on arrays.
The TextDecoder interface represents a decoder for a specific is, a specific character encoding—such as utf-8, iso-8859-2, cp1261, gbk, etc. A decoder takes a stream of bytes as input emits a stream of code points. For a more scalable, non-native see StringView – a C-like representation of strings based on arrays.
(decode this & args)
Method.
[Experimental]
The TextDecoder.prototype.decode() method returns a web.dom.DOMString
the text, given in parameters, decoded with the specific method
that TextDecoder object.
b1 = decoder.decode(buffer, options); b2 = decoder.decode(buffer); b3 = decoder.decode();
See also: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode
Method. [Experimental] The TextDecoder.prototype.decode() method returns a `web.dom.DOMString` the text, given in parameters, decoded with the specific method that TextDecoder object. `b1 = decoder.decode(buffer, options); b2 = decoder.decode(buffer); b3 = decoder.decode();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode`
(encoding this)
Property.
[Read Only] [Experimental]
The TextDecoder.prototype.encoding read-only property returns
web.dom.DOMString
containing the name of the decoding algorithm
by the specific decoder.
var b = decoder.decoding;
See also: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding
Property. [Read Only] [Experimental] The TextDecoder.prototype.encoding read-only property returns `web.dom.DOMString` containing the name of the decoding algorithm by the specific decoder. `var b = decoder.decoding;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding`
(fatal this)
Property.
Is a Boolean indicating whether the error mode is fatal.
Property. Is a Boolean indicating whether the error mode is fatal.
(ignore-bom this)
Property.
Is a Boolean indicating whether the byte order marker is ignored.
Property. Is a Boolean indicating whether the byte order marker is ignored.
(set-fatal! this val)
Property.
Is a Boolean indicating whether the error mode is fatal.
Property. Is a Boolean indicating whether the error mode is fatal.
(set-ignore-bom! this val)
Property.
Is a Boolean indicating whether the byte order marker is ignored.
Property. Is a Boolean indicating whether the byte order marker is ignored.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close