GB18030(5)
π gb18030(5) β okay bestie, let's talk GB 18030
so this is the gb18030 manual page from the File Formats Manual section, and it's literally the whole vibe of Chinese text encoding. buckle up π
β¨ NAME β¨
gb18030 β the GB 18030 encoding method for Chinese text, and yes she ate π
πΈ SYNOPSIS πΈ
ENCODING "GB18030"
that's it. that's the whole line. iconic brevity π«Ά
π¦ DESCRIPTION π¦
okay so β the GB18030 encoding implements GB 18030-2000, which is a PRC national standard for encoding Chinese characters. no cap, it's official.
it's a superset of the older GB 2312-1980 and GBK encodings, and it incorporates Unicode's Unihan Extension A completely β like, the whole thing, not just the bits it felt like. it also provides code space for all Unicode 3.0 code points. main character energy fr fr π
multibyte characters in GB18030 can be one byte, two bytes, or four bytes long. there are a total of over 1.5 million code positions β that's a LOT of room to breathe π
GB 11383-1981 (ASCII) characters are represented by single bytes in the range 0x00 to 0x7F. classic.
Chinese characters are represented as either two bytes or four bytes:
- two-byte characters begin with a byte in the range
0x81-0xFEand end with a byte either in the range0x40-0x7Eor0x80-0xFE⨠- four-byte characters begin with a byte in the range
0x81-0xFE, have a second byte in the range0x30-0x39, a third byte in the range0x81-0xFE, and a fourth byte in the range0x30-0x39π₯
like, the pattern is right there, look at her go π§
β SEE ALSO β
also, for the academically inclined besties π:
- Chinese National Standard GB 18030-2000: Information Technology -- Chinese ideograms coded character set for information interchange -- Extension for the basic set, March 2000.
- The Unicode Standard, Version 3.0, The Unicode Consortium, 2000.
π STANDARDS π
the GB18030 encoding is believed to be compatible with GB 18030-2000. believed!! we're trusting her on this one π (that's the actual wording, don't come for me)
okay that's the whole page, you're basically an encoding expert now, go forth and decode π
sign-off szn: this gorgeous little page comes to you from Debian, dated August 10, 2003 β yes she's vintage, yes she still slays, periodt π π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2002, 2003 Tim J. Robbins
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms