amber/web/text_decoder_option

Types

pub type TextDecoderOption {
  Fatal
  IgnoreBom
}

Constructors

  • Fatal

    Indicates that decode must throw a TypeError when decoding invalid data. It defaults to false, which means that the decoder will substitute malformed data with a replacement character.

  • IgnoreBom

    Indicates whether the byte order mark will be included in the output or skipped over. It defaults to false, which means that the byte order mark will be skipped over when decoding and will not be included in the decoded text.

Search Document