Free Online Utility • UTF-8 Studio • RFC 3629 Engine

Convert HZ Encoding to UTF8

Decode 7-bit RFC 1843 HZ-GB-2312 (`~{ ... ~}`) strings back into clean Simplified Chinese UTF-8 text.

Reference & UTF-8 Spec RFC 3629
Sets bit 7 (| 0x80) on each 2-byte pair inside ~{ ... ~} -> GB2312 -> UTF-8
~{Dc:C~}你好
~{11>)~}北京
~~Literal ~
HZ-GB-2312 TO UTF-8
Decoded Chinese UTF-8

        
100% client-side RFC 3629 UTF-8 Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert HZ Encoding to UTF8 Works

Convert HZ Encoding to UTF8 decodes 7-bit RFC 1843 HZ-GB-2312 payloads (`~{ ... ~}`, `~~`, and `~\n` soft line continuations) back into clean Simplified Chinese UTF-8 text.

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 State-Machine Decoding

Inside ~{ ... ~}: take pairs (c1, c2) -> [c1 | 0x80, c2 | 0x80] -> TextDecoder("gb18030")
Outside ~{ ... ~}: "~~" -> "~", "~\n" -> soft continuation join

Uses the browser’s native WHATWG GB table for instant 100% coverage of all 7,445 GB2312 characters.

Worked Reference Examples

InputOutputTechnical Note
This is in GB: ~{Dc:CJ@=g~}!This is in GB: 你好世界!Mixed ASCII + Chinese
~{11>):MIO:#~} ~~ China北京和上海 ~ ChinaUnescapes ~~ to ~
~{42G0CwTB9b#,RIRJ5XIOK*!#~}床前明月光,疑是地上霜。Full punctuation + Hanzi

Practical Developer & Systems Workflows

Reading Legacy Chinese Usenet & Email Archives

Convert cryptic `~{Dc:C~}` 1990s posts immediately into modern UTF-8.

Security & Charset Triage

Inspect HZ-encoded strings cleanly without legacy OS codepages.

Compatibility, Edge Cases & Best Practices

Supports RFC 1843 `~\n` line-continuation sequences automatically.

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.

Frequently Asked Questions

Why does HZ text look like gibberish punctuation inside ~{ ... ~}?
Because HZ clears the high bit of 2-byte GB2312 Chinese characters so they map into printable 7-bit ASCII (`0x21–0x7E`).
Does this handle RFC 1843 soft line wraps (~ followed by newline)?
Yes — `~\n` sequences are stripped automatically to rejoin wrapped lines.
Does this decode Chinese fullwidth punctuation like , and 。?
Yes — all GB2312 punctuation and Hanzi decode accurately.