GCSE · Computer Science · OCR · Spec J277

Unicode

Send an emoji to a system that uses only ASCII and you may get a plain rectangle: it has no record of the character. So can Unicode still read ASCII?

Follow one character

Where does the rectangle come from?

A character arrives on screen. Choose what the system uses, then choose the character. Guess what appears before you tap the final branch, then try all six routes.

Character set → Character

  • Two things decide what you see: which character set the system uses, and which character it is.

6 routes from character to screen.

On A character arrives on screen. 2 branches to choose from.

Watch out: Unicode contains ASCII's first 128 characters instead of throwing them out, so it can read ASCII text. It's the ASCII-only system that can't read Unicode's extra characters.

Why share a character set?

?

Reason it through

Why does it matter that every device uses the same character set?

Link 1 of 3

First link · your turn

A computer stores text as binary. What does a character set give it?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

Why so many more characters?

No calculator needed. Just think about what one extra bit does.

ASCII uses 7 bits, which gives 128 different characters. A character set uses 8 bits instead. How many different characters can it represent?

Sort the characters

Which characters need Unicode?

Pick a character, then pick where it belongs. Read the reason each time.

Still to sort

In ASCII's 128 (0)

Characters that have one of ASCII's 128 sequences

Where the line is: ASCII works with Western alphabets only, so being a letter isn't enough: it has to be one of the 128.

Needs Unicode (0)

Characters ASCII has no record of

Where the line is: A Unicode system can show these and everything in the other column, because its first 128 characters match ASCII's.

6 of 6 still to sort.

ASCII vs Unicode

ASCIIvsUnicode

Think about why before you open each insight.

Focus

Bits per character

ASCII

7 bits, so 128 characters

Unicode

Up to 32 bits (four bytes)

The insight

The other differences start here. More bits per character means more possible sequences, so there is room for more characters.

What it covers

ASCII

Western alphabets only

Unicode

Characters from other languages, and symbols such as mathematical symbols and emojis

The first 128 characters

ASCII

All 128 of its characters

Unicode

The same 128 as ASCII

UK note

OCR GCSE Computer Science (J277), section 1.2.4: character sets (Unicode and ASCII).

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Why does a plain rectangle sometimes turn up where a character should be? Find out what Unicode adds to ASCII, and why it can still read it.

What you need to know

  • A character set matches each character to its own unique binary sequence.
  • Computers use the same character set so one binary sequence matches the same character on every device.
  • ASCII (American Standard Code for Information Interchange) uses seven bits per character, giving 128 possible characters (2⁷).
  • Have a goPriya says: 'ASCII uses 7 bits, so it can only have 7 characters.' Where has she gone wrong?

    The 7 counts the bits in one sequence, not the characters. Seven bits make 128 different sequences.

    Priya has mixed up the length of a sequence with the number of different sequences. Each sequence is seven bits long, and there are 2⁷ = 128 of them.

  • ASCII is specified for Western alphabets only, so it can't represent languages such as Urdu or Mandarin Chinese.
  • It can't cover all the other symbols computers need either, such as mathematical symbols and emojis.
  • Unicode uses up to 32 bits (four bytes) per character, so it can represent many more characters than ASCII.
  • n bits give 2ⁿ possible sequences, so each extra bit doubles the number of characters a set can represent.
  • Have a goA tiny character set uses 6 bits for each character. How many different sequences can it make, and so how many characters?

    64, which is 2⁶.

    Six bits, six doublings: 2 × 2 × 2 × 2 × 2 × 2 = 64. Adding 6 + 6 or doing 6 × 2 would give 12, far too few.

  • Unicode is compatible with ASCII: its first 128 characters are the same as ASCII's 128.
  • So a system that uses Unicode can still display ASCII characters correctly.
  • Have a goA Unicode system and an ASCII-only system both receive a message made only of ASCII characters. Which one will struggle to display it?

    Neither. Both have a record of every character in it.

    Every ASCII character is also one of Unicode's first 128, so both systems have a record of it. The trouble only starts with characters outside ASCII.

  • An ASCII-only system shows Unicode characters it has no record of as missing characters, such as rectangles.

The big picture

A character set matches characters to unique binary sequences, and devices need to use the same one so a sequence means the same character everywhere. ASCII uses seven bits per character, which gives 128 characters, for Western alphabets only. Unicode uses up to 32 bits (four bytes) per character, so it can represent many more, including characters from other languages and symbols such as mathematical symbols and emojis. Its first 128 characters are the same as ASCII's, so a Unicode system can still display ASCII characters correctly. An ASCII-only system shows Unicode characters it has no record of as missing characters, such as rectangles.

Key points

1A character set matches characters to unique binary sequences. Devices need to use the same one so a sequence means the same character everywhere.
2ASCII: seven bits, 128 characters, Western alphabets only. Unicode: up to 32 bits (four bytes), many more characters.
3n bits give 2ⁿ possible sequences, so each extra bit doubles the number of characters a set can represent.
4Unicode's first 128 characters are the same as ASCII's, so a Unicode system can still display ASCII characters correctly.
5An ASCII-only system can't display Unicode characters it has no record of. It shows missing characters, such as rectangles.

Worked example

Problem

A designer invents a character set that uses 9 bits per character. How many different characters can it represent? How does that compare with ASCII's 128?

⚠ Watch out

Thinking Unicode replaced ASCII, so a Unicode system can't read ASCII text. Unicode's first 128 characters are the same as ASCII's, so it can. The trouble goes the other way: an ASCII-only system has no record of Unicode's extra characters.

🧠

Memory hook

No record, no character. A rectangle means the system has no record of that character. Unicode holds ASCII's 128 and many more, so Unicode can read ASCII, but ASCII can't read Unicode's extras.

✓

Check yourself

Cover the page. Explain why an ASCII-only system might show a rectangle for an emoji, while a Unicode system shows the emoji and ASCII text.

Flashcards

(11)
What does a character set do?
It matches each character to a unique binary sequence.
Why do computers need to use the same character set?
So a binary sequence matches the same character on all devices.
What does ASCII stand for?
American Standard Code for Information Interchange.
How many bits does ASCII use for each character, and how many characters does that give?
Seven bits, which gives 128 possible characters (2⁷).
What is ASCII specified to work with?
Western alphabets only.
Name two kinds of character ASCII cannot represent.
Characters from other languages (such as Urdu or Mandarin Chinese), and many other symbols, such as some mathematical symbols (like ≠) and emojis.
How many bits can Unicode use for each character?
Up to 32 bits (four bytes).
What does each extra bit do to the number of characters a set can represent?
It doubles it, because n bits give 2ⁿ possible sequences.
What does it mean that Unicode is compatible with ASCII?
The first 128 characters in Unicode are the same as the 128 characters in ASCII.
What can a Unicode system do with an ASCII character?
It can still display it correctly.
What does an ASCII-only system show for a Unicode character it has no record of?
A missing character, such as a rectangle.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.