Back

UTF-8 is witchcraft, right?

How computers learned to speak every language

22 September 2026

Ever wondered how your computer can happily store a simple English letter, an emoji, a pound sign and characters from ancient languages – all without everything descending into complete chaos?
It might feel like witchcraft, but there’s some seriously clever computer science behind it.

It all started with ASCII

Back in the day, computers used ASCII (American Standard Code for Information Interchange). ASCII used 7 bits to represent 128 different characters, including English letters, numbers, punctuation and control codes.
Simple, right?
The problem came when people wanted to use characters that weren’t included in the original ASCII character set. Try typing an é, a £ symbol or characters from another language and things quickly became complicated. Various versions of “extended ASCII” appeared, but the same byte could represent different characters on different systems.
Cue: computer chaos.

Enter Unicode

The solution was Unicode, which aimed to give every character a unique number, known as a code point.
For example, the letter A is U+0041, while the pound symbol is U+00A3. Emojis and characters from languages around the world have their own code points too.
Unicode solved the problem of giving characters a consistent identity.

But there was still one important question: How do we actually store those code points as bytes?

UTF-8 does the clever bit

That’s where UTF-8 comes in. UTF-8 is a variable-length character encoding. A character can use between one and four bytes, depending on which character it is.
The really clever part is its backwards compatibility with ASCII. Characters in the original ASCII range (0–127) still use exactly one byte, just as they always did.

Characters outside that range use multiple bytes, with specific bit patterns indicating how many bytes belong to the character. This allows computers to recognise whether a byte starts a new character or continues an existing one.
It sounds complicated, but the result is beautifully efficient.

So, is UTF-8 actually witchcraft?

Thankfully, no.
UTF-8 is simply an incredibly elegant piece of computer science. It manages to remain compact for English text, support languages and symbols from around the world, handle emojis and remain compatible with decades of existing technology.

Not bad for a system that, at first glance, looks like someone made a deal with a very organised demon.

Want to see UTF-8 in action? Watch the full video to explore how character encoding really works.

And for more Computer Science resources, videos and teaching materials, visit the Craig’n’Dave website and discover more ways to bring Computer Science to life.

Related posts

Why teaching models keep returning

Teaching frameworks can provide valuable guidance, but when they become rigid formulas, they can undermine professional judgement. The goal isn’t identical lessons – it’s consistently effective teaching.

18 September 2026

Do GCSEs doom students to fail?

GCSE results may look stubbornly flat, but the reality behind the numbers tells a very different story. Why has further improvement become so difficult, and are we measuring success in the right way?

11 September 2026

Will Quantum Computers Break Encryption?

Could quantum computers really break encryption and put our data at risk? We explore the reality behind the hype, from qubits and Shor’s Algorithm to the future of post-quantum security.

7 September 2026

Is AI a panacea?

AI is moving from experimentation to expectation in schools. But as adoption grows, the focus must shift from simply using AI to using it well. Discover how schools can balance workload, learning, safety and professional judgement — without losing the human element of great teaching.

4 September 2026

Digital ID cards: The future of work or a privacy nightmare?

Are digital ID cards the future of convenience or a threat to privacy? Explore the benefits, risks, and debate behind the UK’s proposed digital ID system.

31 August 2026

Why does your phone get dimmer in the sun?

Ever wondered why your phone dims when you’re in the sun? It’s not being lazy—your device is protecting itself from heat, battery strain, and OLED burn-in.

28 August 2026

Do we really use database normalisation in the real world?

Database normalisation keeps data consistent and tidy, but in the real world, speed often wins over strict rules. Discover how companies like Twitter balance correctness with performance.

26 August 2026

Why do batteries get worse over time?

Ever wondered why your phone battery doesn’t last like it used to? Lithium-ion batteries degrade over time due to stress, heat, and chemical reactions, slowly reducing their charge capacity.

24 August 2026

Why does a weak signal drain your phone battery so fast?

Ever wondered why your phone battery drains so fast when the signal’s weak? It’s not the battery’s fault—your handset is panicking, shouting at towers, and retransmitting data nonstop.

21 August 2026