索然無味
雜事亂記.... 記點曾經解決過的問題的方法,或者是感想吧....
2020年6月3日 星期三
code point 與 code unit 的簡單分類
我的簡單理解方式為:
code unit: a byte. 較接近硬體的,但也可能因系統而異,
e.g. UTF-16 uses two bytes as a code unit。
code point: a character. 某字集內的一個字元,可能為多個 code unit 組成。
ref:
https://stackoverflow.com/questions/27331819/whats-the-difference-between-a-character-a-code-point-a-glyph-and-a-grapheme
較新的文章
較舊的文章
首頁
訂閱:
意見 (Atom)