Current section
Files
Jump to
Current section
Files
src/gossamer/text_decoder/text_decoder_option.gleam
pub type TextDecoderOption {
/// When set, decoding invalid data returns an error instead of substituting
/// malformed data with a replacement character.
///
Fatal
/// Indicates whether the [byte order mark](https://www.w3.org/International/questions/qa-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.
///
IgnoreBom
}