How Convert UTF8 to HZ Encoding Works
Convert UTF8 to HZ Encoding implements the complete RFC 1843 HZ-GB-2312 specification across all 7,445 Simplified Chinese GB2312 characters, wrapping 7-bit stripped GB pairs inside `~{` and `~}` escape delimiters.
UTF-8 (RFC 3629) is the dominant variable-width character encoding of the web, representing every Unicode scalar value from U+0000 to U+10FFFF in 1 to 4 self-synchronizing bytes while remaining 100% backward-compatible with 7-bit ASCII. Every conversion and analysis in this tool executes locally inside your browser with zero server uploads, preserving full privacy and instant response times.
RFC 1843 7-Bit GB2312 Escape Framing
ASCII mode -> literal bytes ("~" becomes "~~")
Enter GB2312 mode -> "~{" + pairs of 0x21..0x7E (EUC-CN bytes with bit 7 cleared)
Exit GB2312 mode -> "~}"
HZ-GB-2312 allowed Chinese Usenet and email messages in the 1990s to traverse strictly 7-bit ASCII mail relays without Base64 expansion.
Worked Reference Examples
| Input | Output | Technical Note |
|---|---|---|
| This is in GB: 你好世界! | This is in GB: ~{Dc:CJ@=g~}! | 100% 7-bit ASCII |
| 北京 | ~{11>)~} | Complete GB2312 table |
| ~ | ~~ | Escaped tilde |
Practical Developer & Systems Workflows
Legacy Chinese Usenet & RFC 1843 Interop
Encode Simplified Chinese text into exact 7-bit HZ-GB-2312 payloads.
Encoding Benchmark & History
Compare 7-bit HZ against UTF-8 and Base64.
Compatibility, Edge Cases & Best Practices
Built dynamically against the browser’s full WHATWG `gb18030` decoder so all 7,445 GB2312 Hanzi and punctuation map accurately.
Copy verified outputs directly to your clipboard or export clean UTF-8 files ready for source repositories, REST APIs, database migrations, protocol test suites, and systems debugging.