Expand description
Vietnamese charset conversion.
Implements legacy charset encode/decode using the same 213-character pivot table approach as x-unikey’s vnconv. Each charset is defined by a single 213-element lookup table mapping the internal index to the charset’s byte representation.
Supported charsets: Unicode (UTF-8) — native, no conversion needed TCVN3 (ABC) — single-byte, the most common legacy charset VNI-WIN — double-byte, second most common legacy VIQR — ASCII quoted-readable WinCP1258 — Windows Vietnamese code page UnicodeDecomposed — NFD (combining diacritics)
Enums§
- Viet
Charset - Supported Vietnamese charsets.
Functions§
- decode
- Decode charset bytes to a UTF-8 string.
- encode
- Encode a UTF-8 string to target charset bytes.
- remove_
tone - Remove tone marks from a Vietnamese UTF-8 string. e.g. “tiếng Việt” → “tiêng Viêt”