TextDecoder
open class TextDecoder(label: String = definedExternally, options: TextDecoderOptions = definedExternally) : TextDecoderCommon(source)
The TextDecoder
interface represents a decoder for a specific text encoding, such as UTF-8
, ISO-8859-2
, KOI8-R
, GBK
, etc.
Functions
Link copied to clipboard
fun decode(input: AllowSharedBufferSource = definedExternally, options: TextDecodeOptions = definedExternally): String
The TextDecoder.decode()
method returns a string containing text decoded from the buffer passed as a parameter.