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.
- Decoding
Reader encoding - A reader wrapper that decodes a byte stream from any supported encoding into UTF-8.
Enums§
- Detected
Encoding - Possible outcomes of start-of-document encoding detection.
- Encoding
Error - An error raised while decoding (or encoding) byte data.
Functions§
- decode
encoding - Decodes the provided bytes using the specified encoding.
- decode_
into encoding - Like
decodebut writes into a pre-allocated buffer. - detect_
encoding - Automatic detection of the XML encoding using the recommended algorithm.