Skip to main content

Module encoding

Module encoding 

Source
Expand description

Encoding detection and UTF-8 decoding for YAML byte streams.

Enums§

Encoding
The encoding detected from the input byte stream.
EncodingError
Error produced when decode cannot convert the byte stream to UTF-8.

Functions§

decode
Decode a YAML byte stream to a UTF-8 String, stripping any BOM.
detect_encoding
Detect the encoding of a YAML byte stream via BOM or null-byte heuristic.
normalize_line_breaks
Normalize all line breaks to LF (\n).