Encoding
Types
Functions
Throw an exception on decoding errors.
Replace errors with the Unicode replacement character (U+FFFD).
Replace errors with a specific character.
Decode a ByteString as UTF-8.
Decode a ByteString as UTF-8 with a custom error handler.
Decode UTF-8, replacing invalid sequences with U+FFFD.
Decode UTF-16LE.
Decode UTF-16LE with custom error handler.
Decode UTF-16BE.
Decode UTF-16BE with custom error handler.
Decode UTF-32LE.
Decode UTF-32LE with custom error handler.
Decode UTF-32BE.
Decode UTF-32BE with custom error handler.
Decode Latin-1 (ISO-8859-1).
Decode ASCII.
Decode ASCII with custom error handler.
Encode Text as UTF-8 with byte escaping.
Encode as UTF-16LE.
Encode as UTF-16BE.
Encode as UTF-32LE.
Encode as UTF-32BE.
Encode as Latin-1, truncating code points > 255.
Encode as ASCII, truncating code points > 127.
Read a 16-bit little-endian word.
Read a 16-bit big-endian word.
Read a 32-bit little-endian word.
Read a 32-bit big-endian word.