Module 2 · On and Off

If everything is numbers, how does the laptop show words?

Lesson 2.4 · A Byte Becomes a Letter

Rob · Sarah · Mark

72, 73. Supposedly a word.

Rob tells Sarah and Mark there’s a code, agreed on in the 1960s and still in use, that turns every byte into a letter.

He writes 72 and 73 on the cardboard and says that’s a word. Sarah stares at it. Mark says it’s two numbers.

Rob says to put them on the switches.

The short answer

It stores every letter as a number and looks up the shape when it draws the screen. Rob’s 72 and 73 say HI. Grandma Ruth’s grocery lists, Sarah’s homework and every web page are all just numbers with an agreed meaning.

Try it yourself

Make each number on the switches and watch what letter it turns into.

Make the letter H (72)

1 of 3

128
64
32
16
8
4
2
1

Adds up to 0

Not a letter yet

What you just did has a name

ASCII and Unicode

ASCII is the agreement, made in the 1960s, that gives every English letter, digit and symbol a number: 65 is A, 66 is B, 97 is lowercase a.

Unicode is the much bigger agreement that came later, with numbers for nearly every writing system on Earth plus emoji.

When you type, the computer stores numbers. When it shows text, it looks up the shape for each number.

A few more things

Capitals and lowercase are different numbers

A is 65 and a is 97. To a computer they’re as different as A and Z, which is why passwords care about capitals.

Emoji are numbers too

The crying-laughing face has its own Unicode number, 128,514. Your phone looks it up and draws the picture. That’s why the same emoji looks a little different on different phones.

Same bytes, different meaning

65 is A when a program reads it as text, a number when it reads it as a number, and a shade of color when it reads it as a pixel. The bytes don’t know. The program decides.

Go deeper

The longer version, if you want it.

Why ASCII wasn’t enough

ASCII used 7 bits, enough for 128 characters: English letters, digits and punctuation. That left out most of the world. For years every country bolted on its own extra codes, and files turned into gibberish when they crossed a border.

Unicode, started around 1990, gave every character in every script one number. Today it covers well over a hundred thousand characters, and the first 128 are still ASCII, so a file from 1970 still reads correctly.

Quick check

In ASCII, A is 65 and B is 66. What number is C?

Let’s take it slower

Imagine a giant chart taped to the wall: 65 means A, 66 means B, all the way through. When you press a key, the computer writes down the number. When it needs to show you the text, it reads the number and draws the letter from the chart. The computer never sees letters. Just numbers and a chart everyone agreed on.

More examples

1

Spelling your name in numbers

SARAH in ASCII is 83, 65, 82, 65, 72. Five bytes. That’s all a computer stores when you type it.

2

The broken text in an old email

Ever seen ’ where an apostrophe should be? One program saved the text with one agreement and another read it with a different one. Same bytes, wrong chart.

Back to the question

So how does the laptop show words?

Show the answer

It stores every letter as a number and looks up the shape when it draws the screen. Rob’s 72 and 73 say HI. Grandma Ruth’s grocery lists, Sarah’s homework and every web page are all just numbers with an agreed meaning.

One last question

Which of these would you trust?

“The computer stores the letters themselves, shapes and all.”

“A and a are different numbers, so a computer treats them as different.”

“Emoji are stored as numbers, just bigger ones.”

“A byte knows whether it’s a letter or a number.”

Talk Card

Talk Card · 2.4

Every letter is stored as a number. ASCII says 65 is A; Unicode extends that to every language and every emoji. The computer only ever sees numbers.

How Computers Work · pettigrewlab.com/learn

Next lesson