Reading Unicode Code Point Notation
A Unicode code point names a value in the Unicode codespace. Its hexadecimal identifier is distinct from how an encoding writes it.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Compare one character's representations
The notation U+00E9 names the precomposed é. UTF-8 writes it as two bytes, C3 A9. A decimal count, a hexadecimal code point label, and an encoded byte dump therefore report different views. See Unicode positions.
Check equivalence separately
Visually identical forms can use a different sequence of code points. Compare those sequences or apply a declared canonical normalization before treating the text as an identifier. Unicode normalization gives that separate rule.[1]
Relate one code point to two external representations
The notation U+00E9 names the Unicode code point for é. Hexadecimal E9 is its scalar value, while its UTF-8 encoding uses two bytes, C3 A9. A decoder seeing a single E9 cannot treat that as the complete UTF-8 representation. See UTF-8 byte classes.
Code point U+00E9 = 233 decimal
UTF-8: C3 A9
UTF-16 code unit: 00E9 for this character
Text notation U+00E9 itself contains six ASCII characters
Keep code points separate from displayed characters
A combined accent with its base may take several code points. Use the unit needed for the operation and specify it in offsets. Test a non-ASCII character outside the basic multilingual plane when discussing UTF-16 code units.