UnionFaps
lingthusiasm from patreon
lingthusiasm patreon

Bonus 60: Emoji, Mongolian, and Multiocular O ꙮ - Dispatches from the Unicode Conference

🕑 Added 2022-02-04 02:07:33 +0000 UTC
Bonus 60: Emoji, Mongolian, and Multiocular O ꙮ - Dispatches from the Unicode Conference

Comments

Right - for working with unicode the hex notation is standard so it makes to use it. But to just understand it conceptually I like to think in the normal base 10 number system. And if I'm just saving and reading text files there's normally nothing to do with hex going on.

Shaeeyaa

That seems to be a very common way of writing Unicode character codes. The Unicode standard itself tables of grapheme clusters indexed by hex row and column indices that together specify the number (see for example https://www.unicode.org/charts/PDF/U0250.pdf). C++ uses a similar syntax when incorporating Unicode characters into literal strings (for example \u0041 in https://en.cppreference.com/w/cpp/language/escape). HTML uses a different version with hex such as A (but also can use decimal numbers A). Even Perl uses a hex notation such as 0x0041 (https://perldoc.perl.org/perluniintro#Hexadecimal-Notation). And it's documentation states "The Unicode standard prefers using hexadecimal notation because that more clearly shows the division of Unicode into blocks of 256 characters." The Unicode FAQ for Unix/Linux talks about how UTF-8 relates to all of these numbers (https://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8).

It feels like it might be unnecessarily complicating things to say that Unicode defines letter A as 'U+0041'. Why not just say that Unicode gives each letter a number and A is number 65. "U+0041" is one way to write that, but that's more a way to communicate between humans. It isn't what the computer is looking at, which would be something in binary and depends on the particular encoding used - usually UTF-8 but the episode didn't get into that.


More Creators