ASCII and Its Limitations
You'll learn why ASCII, one of the earliest character encodings, can't handle the world's languages.
What Is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding created in the 1960s. With 7 bits, you can represent exactly 2⁷ = 128 different characters. These include:
- Uppercase letters:
A-Z(26 characters) - Lowercase letters:
a-z(26 characters) - Digits:
0-9(10 characters) - Punctuation and symbols:
!,@,#, etc. - Control characters: newline, tab, carriage return
Think of ASCII as a lookup table: the letter 'A' maps to number 65, 'B' to 66, and so on. When storing text, computers originally saved these numeric codes as 7-bit values.
The 7-Bit Structure
Each ASCII character fits in 7 bits, though typically stored in a full byte (8 bits) with one bit unused. The range is 0-127. For example:
'A'= 65 (binary: 1000001)'a'= 97 (binary: 1100001)'0'= 48 (binary: 0110000)
Why ASCII Falls Short
ASCII was designed for English only. It has no way to represent:
- Accented characters: é, ñ, ü (common in European languages)
- Non-Latin alphabets: Cyrillic (Русский), Greek (Ελληνικά), Arabic (العربية)
- Asian scripts: Chinese characters (中文), Japanese (日本語), Korean (한국어)
- Emojis and symbols: 😀, ✓, ™
With only 128 slots, ASCII couldn't accommodate even French or Spanish text properly. This created a global problem: files created in one language couldn't be read correctly in another. Extended 8-bit encodings like ISO-8859-1 tried to help by adding 128 more characters, but still couldn't represent multiple languages simultaneously.
Key Takeaway:
ASCII's 7-bit design limits it to 128 characters—enough for basic English but completely inadequate for international text, which is why modern encodings like UTF-8 exist.