# Character Encoding

> A rule that turns each letter into a number to store. It turns it back too.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** Text Encoding, Charset, Encoding

## Think of it like

Think of it like a secret code book where each letter has a number. Both sides need the same book to read the message.

## Definition

A character encoding is the rule that turns letters into bytes and back. Computers only store numbers, so each letter needs a number to stand for it. If a file is saved with one encoding and read with another, letters come out wrong. That is why you sometimes see odd signs like Ã© where é should be. Today almost every system uses UTF-8.

## Example

Lucy opens an old file and sees Ã© instead of é. It was saved in UTF-8 but read as an older encoding.

## Why it matters

A wrong one breaks names and any letter that is not English. Use UTF-8 in all places to avoid it.

## Common mistake

Assuming every file is plain English text. Names like Zoë and words in Persian need the right encoding.

## Three principles

- **Letters as numbers.** Each sign has a number.
- **Both sides must match.** Same rule to save and read.
- **Use UTF-8.** It covers every language.

## Related terms

- [8-bit Unicode Transformation Format (UTF-8)](https://learn.benibix.com/term/development/utf-8)
- [Unicode](https://learn.benibix.com/term/development/unicode)
- [American Standard Code for Information Interchange (ASCII)](https://learn.benibix.com/term/development/ascii)
- [Byte](https://learn.benibix.com/term/development/byte)
- [String](https://learn.benibix.com/term/development/string)
- [Base64](https://learn.benibix.com/term/development/base64)

## Taught in

- [ASCII, Unicode and UTF-8](https://learn.benibix.com/learn/development-formats/ascii-unicode-and-utf-8): File Formats, 8/11

---

Source: https://learn.benibix.com/term/development/character-encoding
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
