Character Sets

Computer ScienceOCRGCSEUnit: 3.3 Data Representation
Free taster
5 of 6 sections open
The basics

The Universal Translator

The Universal Translator

Imagine writing a letter using only numbers - each letter gets a code. 'A'=65, 'B'=66, 'Hello'=72,101,108,108,111. This is ASCII (the American code from the 1960s, only 128 characters). But what about é, ñ, 中, 😀? That's where Unicode comes in - a massive universal codebook with 143,859 characters covering every language, emoji, and symbol on Earth! Your computer translates between human text and these number codes billions of times per second.
Spotlight
Deep Dive: Why Character Sets Matter

Computers only understand numbers (binary). To display text, we need an agreed mapping: character set = code number → symbol. Without this:

Exam tip

Earn the mark scheme marks

Exam Tips - Character Sets

Most common exam questions:

  • "What is ASCII?" → Character set with 128 characters (7-bit), covers English alphabet, numbers, punctuation
  • "Why use Unicode?" → Covers ALL languages and symbols (143,000+ characters), international support, emoji
  • "ASCII code for 'A'?" → 65 (memorize this!)
  • "Difference UTF-8 vs UTF-16?" → UTF-8 uses 1-4 bytes (efficient for English), UTF-16 uses 2-4 bytes (efficient for Asian languages)
  • "How many bytes for ASCII character?" → 1 byte

Key facts to memorize:

  • ASCII: 7-bit (128 characters), English only, 1 byte per character
  • Extended ASCII: 8-bit (256 characters), accented letters
  • Unicode: 143,859 characters, all languages, UTF-8/16/32 encodings
  • UTF-8: 1-4 bytes, most common, web standard
  • Common codes: 'A'=65, 'a'=97, '0'=48, space=32

Common mistakes to avoid:

  • Confusing character set (Unicode) with encoding (UTF-8) - they're related but different!
  • Saying ASCII is 8-bit - NO! Standard ASCII is 7-bit (128 characters)
  • Thinking Unicode uses more space - depends on encoding! UTF-8 is same as ASCII for English
  • Mixing up 'A' (65) and 'a' (97) - uppercase ≠ lowercase

Now try it yourself

Quiz · Question 1 of 15

How many bits does standard ASCII use to represent each character?

Tap an answer to check it

Revise every Computer Science topic, free during alpha

Character Sets is one of 60 topics on PrepWise — all aligned to your exam board.

Start revising free →