zhuang@linux:~/blog/learn-some-character-encoding/$ cat
Learn Some Character Encoding
At its core, the digital world is built on zeros and ones. Learning how characters are encoded helps us understand how meaning emerges from these simple bits.
UTF-8
UTF-8 Format
| Code Points (From - To) | Bit Value | Byte 1 | Byte 2 | Byte 3 | Byte 4 |
|---|---|---|---|---|---|
| U+0000-U+007F | 0xxxxxxx | 0xxxxxxx | |||
| U+0080-U+07FF | 00000yyy yyxxxxxx | 110yyyyy | 10xxxxxx | ||
| U+0800-U+FFFF | zzzzyyyy yyxxxxxx | 1110zzzz | 10yyyyyy | 10xxxxxx | |
| U+010000-U+10FFFF | 000uuuuu zzzzyyyy yyxxxxxx | 11110uuu | 10uuzzzz | 10yyyyyy | 10xxxxxx |
zhuang@linux:~/blog/learn-some-character-encoding/$ comments