Re:UTF-8 – "The most elegant hack"
by Flimm on Sunday September 29, 2013 @05:10AM
(#6464610)
Please define what you mean by code point and code unit.
[ Parent
| on HN ]
I mean the same thing that Unicode uses these terms for.
Code Unit. The minimal bit combination that can represent a unit of encoded text for processing or interchange. The Unicode Standard uses 8-bit code units in the UTF-8 encoding form, 16-bit code units in the UTF-16 encoding form, and 32-bit code units in the UTF-32 encoding form.
Code Point. (1) Any value in the Unicode codespace; that is, the range of integers from 0 to 10FFFF16. (See definition D10 in Section 3.4, Characters and Encoding.) Not all code points are assigned to encoded characters. See code point type. (2) A value, or position, for a character, in any coded character set.