The encoding label. Must be "mutf-8" or "mutf8" (case-insensitive)
Configuration options for the decoder behavior
The encoding name for this decoder.
This property is provided for compatibility with the WHATWG TextDecoderStream interface.
Always "mutf-8"
Indicates whether the decoder is in fatal error mode.
When true, the decoder will throw a TypeError when encountering invalid Modified UTF-8 byte sequences. When
false, invalid sequences are replaced with the Unicode replacement character (U+FFFD).
true if error mode is fatal, otherwise false
Indicates whether the decoder ignores Byte Order Marks.
When true, BOM bytes (0xEF 0xBB 0xBF) at the beginning of input are silently ignored. When false, they are
treated as regular characters.
true if BOM should be ignored, otherwise false
The streaming equivalent of MUtf8Decoder.
This transform stream provides efficient decoding of Modified UTF-8 data in streaming scenarios, allowing you to process large amounts of data without loading everything into memory.
Example
See
Since
v1.2.0