Course contentsShow
← Java
Lesson 1999 of 2,87040. File I/O: Character StreamsFree lesson

Unicode: The Universal Character Set

Explore Unicode as a standard that assigns code points to characters from all writing systems.

Unicode: The Universal Character Set

You'll learn what Unicode is and why it solved the problem of representing characters from all the world's writing systems.

The Problem Unicode Solved

After learning about ASCII's limitations (only 128 characters, covering basic English), you discovered that different countries created their own encoding systems. Japanese had Shift-JIS, Russian had KOI8-R, Greek had ISO-8859-7, and so on. This created chaos—the same byte sequence meant different things depending on which encoding you assumed.

What Is Unicode?

Unicode is a universal standard that assigns a unique number (called a code point) to virtually every character from every writing system on Earth. Instead of having competing encodings, Unicode provides one master catalog where:

  • The letter "A" is always code point U+0041
  • The Greek letter "Ω" is always U+03A9
  • The emoji "😀" is always U+1F600
  • The Chinese character "中" is always U+4E2D

Think of Unicode as a massive phone book where every character ever used gets its own permanent ID number. Whether you're writing English, Arabic, Hindi, or emoji, they all live in the same standardized catalog.

Code Points Aren't Bytes

A critical distinction: a Unicode code point is an abstract number identifying a character. It's not the bytes stored on disk—that's where encodings like UTF-8 and UTF-16 come in (which you'll learn about soon). Unicode defines what the characters are; encodings define how to store them.

Coverage

Unicode currently defines over 140,000 characters across 150+ scripts, including historical scripts, mathematical symbols, and even fictional alphabets like Klingon.

Key Takeaway:
Unicode is the universal standard that assigns unique code points to characters from all writing systems, eliminating the chaos of competing regional encodings.