Unicode Explained: How Computers Handle Every Writing System
Why does text sometimes turn into strange symbols? The answer lies in character encoding — and Unicode is the solution.
Before Unicode, computers used many different character encodings, each covering only a few languages. Sending a Russian or Greek email could turn into nonsense on the other side. Unicode fixed this by giving every character a single, universal number.
Code points
Unicode assigns each character a unique code point, written like U+0041 for “A”, U+0416 for Cyrillic “Ж” or U+4E2D for the Chinese character 中. The standard now covers well over 100,000 characters from scripts around the world, plus symbols and emoji.
Encodings: UTF-8 and friends
A code point is an abstract number. To store it, computers use an encoding:
- UTF-8 uses 1 to 4 bytes per character. It is compatible with ASCII and is by far the most common encoding on the web.
- UTF-16 uses 2 or 4 bytes and is used internally by some operating systems and programming languages.
- UTF-32 uses 4 bytes for every character — simple but space-hungry.

Why text becomes garbled
Garbled text — sometimes called mojibake — happens when text saved in one encoding is read as another. For example, UTF-8 Cyrillic interpreted as an older Western European encoding turns into strings like “привет”. The fix is to make sure every system uses the same encoding, ideally UTF-8.
- Use UTF-8 everywhere: files, databases, web pages and APIs.
- Declare it:
<meta charset="utf-8">in HTML. - Use a Unicode-aware database collation.
- Test with real multilingual data.
Normalisation
Some characters can be written in more than one way: “é” can be a single code point or “e” plus a combining accent. Unicode normalisation (such as NFC) converts text to a consistent form so searching and comparing work correctly.
Emoji
Emoji are Unicode characters too. New ones are approved by the Unicode Consortium, and some are built from sequences — skin tones and family emoji combine several code points.
Frequently Asked Questions
What is the difference between Unicode and UTF-8?
Unicode is the character set that assigns numbers to characters. UTF-8 is one way of encoding those numbers as bytes.
How many characters does Unicode contain?
Unicode contains well over 100,000 characters, and new scripts and symbols are added in regular updates.

