Expand description
Character set conversion utilities for EBCDIC ↔ UTF-8.
Provides bidirectional conversion between five IBM EBCDIC codepages and Unicode/UTF-8 using compile-time lookup tables for maximum throughput.
§Supported Codepages
| Codepage | Region |
|---|---|
| CP 037 | US / Canada |
| CP 273 | Germany / Austria |
| CP 500 | International Latin-1 |
| CP 1047 | Latin-1 / Open Systems |
| CP 1140 | US / Canada with € |
§Key Functions
ebcdic_to_utf8— Decode an EBCDIC byte slice to a RustString.utf8_to_ebcdic— Encode a UTF-8 string into an EBCDIC byte vector.
Both functions accept an UnmappablePolicy that controls behaviour when a
character has no mapping in the target encoding (replace with a substitute
character or return an error).
Enums§
- Codepage
- Character encoding specification
- Unmappable
Policy - Policy for handling unmappable characters during decode
Functions§
- ebcdic_
to_ utf8 - Convert EBCDIC bytes to UTF-8 string
- get_
zoned_ sign_ table - Get zoned decimal sign table for a codepage.
- space_
byte - Get the space byte value for a codepage.
- utf8_
to_ ebcdic - Convert UTF-8 string to EBCDIC bytes