Skip to content
BENIBIX Learn

Unicode

Development📄 Files & FormatsText

Also known as Unicode Standard, Unicode Code Point, Code Point

One list that gives each letter in each language a number. Emoji too.

Think of it like

Think of it like one huge phone book. Each letter in each language gets its own number.

Example

Emma texts a Persian word and a smiley to Jack. Both phones use Unicode, so he sees exactly what she typed.

Why it matters

Before Unicode, each region had its own codes, and text broke when it moved between them. Now one standard covers it all.

Definition

Unicode is a world standard. It gives every character its own number. It covers letters from almost every language, plus symbols and emoji. It now holds more than 150,000 characters. A character's number is its code point, written like U+0041 for A. Unicode only picks the numbers, and an encoding such as UTF-8 stores them as bytes.

Example code

console
$ python3 -c "print(hex(ord('é')), hex(ord('😀')))"
0xe9 0x1f600
Each character has its own number. é is U+00E9 and the smiling face is U+1F600.
The middle column is Unicode. It gives each letter one number, in any language.

Common mistake

Thinking Unicode and UTF-8 are the same thing. Unicode is the list of numbers, and UTF-8 is one way to store them.

Key takeaways

  1. 1
    One number each. Every character gets a code point.
  2. 2
    Every language. Plus symbols and emoji.
  3. 3
    Not the bytes. An encoding like UTF-8 stores it.

Compare

Learn it properly