Skip to main content

Module encoding

Module encoding 

Source
Expand description

Re-export of aozora_encoding — Shift_JIS decoding and gaiji resolution.

Phase 0 of the lex pipeline runs encoding detection first; callers that want to drive encoding without parsing can reach through this module.

Modules§

gaiji
Gaiji (外字) resolution — mapping ※[#…、mencode] references to real Unicode characters.

Enums§

DecodeError
Errors surfaced by the decode pipeline.

Functions§

decode_sjis
Decode a Shift_JIS byte slice into UTF-8 (NFC normalisation is applied by the caller after decoding).
decode_sjis_into
Decode a Shift_JIS byte slice into the caller-owned dst buffer.
has_utf8_bom
Whether the byte slice carries a UTF-8 BOM (EF BB BF).