Tech

Code Page

It's a regional translation cipher chart that matches each country's language to numbers.

Definition

A code page is a standard table that pairs numbers with characters so a computer can show text on screen. In the past, no single table could hold every language in the world. So each language region or operating system used its own different table.

How a Computer Reads Letters, Like a Spy's Codebook

Imagine old-time spies each holding a different codebook. Give them the same coded message, and they'd read it as completely different words. A computer showing text on screen works much the same way. A computer doesn't know letters at all. It's a machine that only calculates with numbers made of 0s and 1s.

So developers created a basic rule called ASCII, which gave each letter and symbol its own number. But ASCII could hold only 128 characters, such as English letters and digits. That was nowhere near enough for other languages. In the end, each country started filling the leftover 128 slots with its own language.

The United States and Western Europe filled them with special symbols and accented letters. Places like Korea and Japan have thousands of characters, so 128 slots weren't enough. They used pairs of numbers from the leftover slots to stand for a single character. A standard that pairs numbers with characters for a particular language or region is called a code page. In effect, computers in each country opened a different codebook to read the same text.

Why Alien Writing Shows Up on Your Screen

You may have opened an old file and seen a flood of strange symbols and bizarre characters. The computer or the file isn't broken. The computer that wrote the document and the computer that opened it were using different code pages.

For example, Korean Windows uses a code page called CP949 to turn Korean characters into numbers and save them. But if you open that document on Japanese Windows, the Japanese code page (CP932) kicks in. It turns the very same numbers into completely different Japanese characters and shows those on screen.

When the writer's number table and the reader's number table don't match, you get garbled text. Every time people swapped files between language regions, alien writing popped up and caused headaches.

A Bit More Precisely: Unicode and What's Left Over

To end the mess of every country using a different number table, Unicode, which holds every character in the world in one giant table, arrived along with UTF-8, which handles it. Thanks to them, we can now visit foreign websites in other languages and read them without garbled text.

But a new technology doesn't make the old problems vanish overnight. The only thing the widely used UTF-8 can read as-is from the old days is English letters and symbols in the ASCII range. Old text documents saved with a Korean code page, such as the older precomposed Korean encoding (wanseonghyeong) or CP949, still look garbled if you read them as UTF-8 without changing the encoding.

A code page is less a single method than a technical product of an era, when computer memory was far too scarce and people somehow had to represent each region's language. Even now, the rules of code pages are still alive deep inside Windows and in old programs at public agencies.

Common misconceptions

Myth

A code page is a font file that draws pretty lettering on the screen.

Fact

A font is a file of pictures that draws the shape of letters. A code page is a conversion table that pairs each number with a character, one to one.

Myth

The latest UTF-8 standard can read files written in the old Korean code page (CP949) as-is, with no conversion.

Fact

The only part of the old rules that UTF-8 can read as-is is the ASCII range, with English letters and basic symbols. A Korean document saved in CP949 will come out garbled if you open it as UTF-8.

Where you meet it

  1. Opening an old text file in Windows Notepad and seeing Korean text turn into alien-looking garbage

  2. The Command Prompt (cmd) window on Korean Windows, where the default code page number is set to 949

  3. A Korean web page that looks garbled after you change the browser's "encoding" setting by mistake

In one sentence

A code page is the translation table computers used to turn each region's language into numbers. If the reader's table differs from the writer's, the text turns into garbage.

Stories featuring this concept

Created 2025-11-08 Updated 2026-10-17 Verified 2026-10-17