Unicode
Also known as: The Unicode Standard
Universal character encoding standard that assigns a unique number to every character in the world's writing systems, symbols and emoji.
Unicode is the standard that lets computers represent text in virtually every language. It assigns each character, whether the Latin letter A, a Chinese character, an Arabic letter, a mathematical symbol or an emoji, a unique number called a code point, written in a form such as U+0041. The code space allows for 1,114,112 code points, and as of version 16.0, released in 2024, Unicode defines more than 150,000 characters across more than 160 scripts. It also specifies rules for sorting, text direction, line breaking and combining characters such as accents.
Before Unicode, hundreds of incompatible encodings existed, so text written on one system often appeared as garbled characters, known in Japanese as mojibake, on another. Work by Joe Becker of Xerox and Lee Collins and Mark Davis of Apple in the late 1980s led to the founding of the Unicode Consortium in 1991 and the first version of the standard that year. Code points are stored using encodings such as UTF-8, designed by Ken Thompson and Rob Pike in 1992, which represents ASCII characters in a single byte and others in two to four bytes. UTF-8 is used by the great majority of websites.
Unicode is a precondition for a multilingual internet, allowing people to write in their own languages and scripts rather than adapting to systems designed for English. Handling it correctly is subtle for programmers: one visible character may consist of several code points, so string length and reversal can give unexpected results, and visually identical characters from different scripts enable homograph attacks in domain names and phishing links. Encoding mismatches remain a common source of bugs. Decisions about which emoji to encode have also drawn public attention to the consortium's process.
Key points
- Unicode gives every character a unique code point, independent of platform, program or language.
- UTF-8, designed by Ken Thompson and Rob Pike in 1992, is the dominant encoding on the web.
- As of version 16.0 in 2024, Unicode defines more than 150,000 characters.
- Look-alike characters from different scripts can be abused in homograph attacks on domain names and links.
Related entries
Unicode Consortium
Nonprofit organization that maintains the Unicode Standard, the character encoding used to represent text in most of the world's writing systems.
Ken Thompson
American computer scientist who created the Unix operating system and the B language and later co-designed the UTF-8 encoding and the Go language.
Binary Number System
Base-2 positional number system that represents values using only the digits 0 and 1, the foundation of how digital computers store data.
JSON
Lightweight, text-based data interchange format that represents structured data as nested objects and arrays, derived from JavaScript syntax.
HTML
Markup language used to structure content on the World Wide Web, describing headings, paragraphs, links, images and interactive elements.
Phishing
Deceptive messages or websites that impersonate trusted parties to trick people into revealing credentials, sending money or installing malware.
Open Standard
Technical standard that is publicly available and developed through an open process, so anyone can implement it, usually without restrictive royalties.