Module encoding

Source
Expand description

Support for working with different codepages / encodings.

Structs§

Ascii
This unit struct can be used as an Encoding to try to decode characters as ASCII, and returning an error if non-ascii codepoints are encountered.
LossyCodePage
Unicode
This unit struct can be used as an Encoding to try to decode a string as Unicode, and returning an error if unknown codepoints are encountered.
UnicodeLossy
This unit struct can be used as an Encoding to try to decode characters as Unicode, falling back to the replacement character for unknown codepoints.

Traits§

AsCodePageMark
Encoding
Trait for reading strings from the database files.
EncodingClone
Trait to be able to clone a Box<dyn Encoding>