Character Encoding and Error Detection
Aligned to the AQA 7517 specification
- Level
- Intermediate
- Reading time
- 5 min
- Published
- 13 June 2026
- Updated
- 1 July 2026
On this page
Key takeaways
- The same digit stored as a pure binary integer and as an ASCII character code is a different bit pattern: binary 5 is 0000 0101, but the character '5' in ASCII is 53 = 0011 0101.
- ASCII is a 7-bit encoding covering 128 characters, while Unicode assigns a unique code point to every character in every writing system, with UTF-8 using 1–4 bytes per character.
- A parity bit detects single-bit errors only and cannot correct them; two simultaneous errors cancel out and go undetected.
- Majority voting achieves error correction by transmitting each bit three times and taking the majority value, but it triples the data volume and fails for two or more errors in the same triple.
- Unicode is a standard that assigns code points to characters, whereas UTF-8, UTF-16, and UTF-32 are different ways of encoding those code points as bytes.
Want more lessons like this one?
Generate lessons on anything you study. Free account, no card needed.
Key terms
- ASCII
- The American Standard Code for Information Interchange, a 7-bit character encoding covering 128 characters.
- Extended ASCII
- An 8-bit encoding covering 256 characters, adding accented characters and symbols, though different standards define the extra 128 differently.
- Unicode
- A universal character encoding standard that assigns a unique code point to every character in every writing system in the world.
- UTF-8
- The dominant web encoding of Unicode, using 1–4 bytes per character and backward-compatible with ASCII.
- Parity bit
- An extra bit added to a data word to make the total number of 1-bits either even or odd, detecting single-bit errors.
- Even parity
- A scheme where the parity bit is chosen so the total count of 1s, including the parity bit, is even.
- Majority voting
- An error-correction method that transmits each bit three times and takes the majority value at the receiver.
- Checksum
- A value computed from a block of data, typically by summing bytes, that the receiver recomputes and compares to detect errors.
- Check digit
- A single digit appended to an identifier such as a barcode or ISBN, computed from the preceding digits.
Frequently asked questions
ASCII is a 7-bit character encoding covering 128 characters, mainly English letters, digits, punctuation, and control characters. Unicode is a universal standard that assigns a unique code point to every character in every writing system, supporting over 1.1 million code points and representing international alphabets, symbols, and emoji.
No. A parity bit can only detect errors, not correct them; it only flags that something went wrong. It detects single-bit errors only, since two simultaneous errors cancel out and go undetected. To correct errors, majority voting or error-correcting codes such as Hamming codes are needed.
No. UTF-8 uses variable-length encoding: 1 byte for ASCII-compatible characters (0–127) and up to 4 bytes for rarer characters. Claiming it always uses 4 bytes, like UTF-32, is incorrect. UTF-8 is also backward-compatible with ASCII.
Generate revision on any topic you study
Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.
Lessons on anything
Structured, level-matched lessons on any topic you study
Practice quizzes
Find out what you actually know before the exam does
Flashcard sets
Lock in key concepts with instant revision cards
Ask Aica
Stuck on something? Get a clear explanation, any time
Representation Errors and Precision
Images, Sound and Data Representation
Related lessons
6 min
5 min
6 min