Skip to main content

Module encoding

Module encoding 

Source
Expand description

Wrappers that decode byte data into strings.

The Decoder plays the same role as the decoder in quick-xml 0.41: without the encoding feature it is always a UTF-8 decoder; with the encoding feature it carries the document encoding inferred from the XML declaration and is backed by the Pure-Rust oxixml-encoding crate instead of encoding_rs.

Structs§

Decoder
Decoder of byte slices into strings.
DecodingReaderencoding
A reader wrapper that decodes a byte stream from any supported encoding into UTF-8.

Enums§

DetectedEncoding
Possible outcomes of start-of-document encoding detection.
EncodingError
An error raised while decoding (or encoding) byte data.

Functions§

decodeencoding
Decodes the provided bytes using the specified encoding.
decode_intoencoding
Like decode but writes into a pre-allocated buffer.
detect_encoding
Automatic detection of the XML encoding using the recommended algorithm.