The chaos before Unicode
Computers store text as numbers, so every character needs an agreed code. Early systems used ASCII, a 1960s American standard with just 128 codes, enough for English letters, digits and punctuation. Other languages needed more, so dozens of incompatible ‘code pages’ appeared, each reusing the same numbers for different characters. Arabic alone had several, including ISO 8859-6 and Windows-1256. A document written under one and opened under another turned into gibberish, a problem Japanese users nicknamed mojibake. Mixing languages in one file was nearly impossible. In the late 1980s, engineers from Xerox and Apple began work on a universal alternative, and Unicode 1.0 was published in 1991.
A number for everything
Unicode assigns every character a unique number called a code point, written in hexadecimal with the prefix U+. The Latin capital A is U+0041; the Arabic letter alif is U+0627. The space is large enough for 1,114,112 code points, and more than 150,000 have been assigned, covering modern scripts, historic ones such as cuneiform, mathematical symbols and emoji. The non-profit Unicode Consortium, whose members include technology companies, governments and universities, decides what to add after detailed proposals. Unicode defines characters, not their appearance: it says what a letter is, while fonts decide how it looks. That separation lets the same text display in any typeface.
From numbers to bytes
Code points must still be stored as bytes, and the dominant method is UTF-8, designed in 1992 by Ken Thompson and Rob Pike. It uses a variable number of bytes: one for the original ASCII characters, two for scripts such as Arabic, Hebrew, Greek and Cyrillic, three for most Chinese, Japanese and Korean characters, and four for emoji and rarer symbols. The Arabic greeting ‘سلام’ has four letters but takes eight bytes, while ‘salam’ in Latin letters takes five. Because English text looks identical in ASCII and UTF-8, the format could be adopted without breaking old systems, and it now encodes the overwhelming majority of web pages.
Right to left, and both at once
Arabic, Hebrew, Persian and Urdu are written from right to left, but they often contain numbers, names or phrases in left-to-right scripts. Unicode stores text in logical order, the order in which it is typed and read, not the order it appears on screen. The Unicode Bidirectional Algorithm then works out how to display mixed text. It knows that Arabic letters run right to left, Latin letters left to right, and numbers have their own rules. A sentence in Arabic containing a phone number or an English brand name is thus laid out correctly. Errors still occur, especially with punctuation at the boundaries, which is why brackets sometimes appear reversed.
Letters that change shape
Arabic script is cursive: most letters join their neighbours and change shape depending on position. The letter ‘ha’ looks different alone, at the start, in the middle and at the end of a word. Unicode normally stores only one code point for each letter, not four. Shaping software, built into operating systems and browsers, looks at each letter’s neighbours and chooses the right form from the font, adding ligatures such as the obligatory lam-alif combination. Optional diacritics marking short vowels are separate code points placed above or below letters. Early computers struggled with all this, producing disconnected letters; today’s shaping engines handle Arabic, Devanagari and other complex scripts reliably.
Still growing
Unicode is updated regularly. Each version adds characters, from scripts still used by small communities to historic writing systems needed by scholars and new emoji proposed by the public. Getting a script encoded matters: without code points, a language cannot easily be typed, searched or published online, so linguists work with communities to document their writing. Problems remain. Some characters look identical but have different code points, which criminals exploit to create look-alike web addresses. Fonts may lack glyphs, producing empty boxes. Yet the achievement is remarkable: a message typed in Arabic in Sharjah can be read correctly on a phone in Tokyo, alongside emoji and Japanese text.
Sources & further reading
- Unicode Consortium ↗
- Unicode Consortium · Arabic code chart ↗
- W3C · Character encodings for beginners ↗
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



