Skip to content

Why do some glyphs have a four-digit hex code while other have five digits? #1681

Closed Answered by Finii
stamminator asked this question in Q&A
Discussion options

You must be logged in to vote

"In the beginning" there was ASCII, where each character can be expressed as 7 bit number - later expanded to 8 bit.
These 8 bits can be expressed as 2 digit hexadecimal number.
But 256 characters is a bit low, considering all these strange letters with appendices like ä and Ó.
Then we got codepages. Etc.

That all was too limited and finally unicode came up. Version 2 had 40'000 characters, nowadays we have 150'000.
The 'address' of a certain character or glyph is its codepoint. And you see for Version 2 with 40'000 (decimal) codepoints each can be expressed as 4 digit hexadecimal number (40000 decimal = 9C40 hex). But this is no longer possible (150'000 decimal = 249F0 hex)

We are not fr…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@stamminator
Comment options

@Finii
Comment options

@Finii
Comment options

@Finii
Comment options

@stamminator
Comment options

Answer selected by stamminator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants