Articles › Developer Pain
Why Does My Text Show é or ’? (Free Garbled Text Fixer)
Your text should say café, but it shows café. Or every apostrophe became ’. Good news: in most cases nothing is lost, and you can get the real text back right now. Paste it below.
Free garbled text fixer
🔒 It runs in your browser. Your text isn't sent or stored anywhere.
Why does it happen?
Computers store text as bytes. An encoding is the rule for turning bytes into letters. Today almost everything uses UTF-8, where é takes two bytes. An older rule, Windows-1252 (often called Latin-1), uses one byte for each letter.
So é isn't random. It's what the two bytes of é look like through the wrong rule. This kind of broken text is called mojibake (say mo-jee-bah-keh), from Japanese.
▶ Prefer watching? Here it is in 23 seconds:

Why café turns into café
What should this character be?
The 53 you're most likely to meet. hidden and space mark parts you can't see on screen, which is why some, like the closing quote, look cut off.
Quotes, dashes and symbols
| You see | It should be | UTF-8 bytes |
|---|---|---|
’ | ’ apostrophe / right quote | E2 80 99 |
‘ | ‘ left single quote | E2 80 98 |
“ | “ left double quote | E2 80 9C |
â€hidden | ” right double quote | E2 80 9D |
– | – short dash (en dash) | E2 80 93 |
— | — long dash (em dash) | E2 80 94 |
… | … three dots | E2 80 A6 |
• | • bullet | E2 80 A2 |
â„¢ | ™ trademark | E2 84 A2 |
© | © copyright | C2 A9 |
® | ® registered | C2 AE |
° | ° degree | C2 B0 |
½ | ½ half | C2 BD |
× | × multiply | C3 97 |
Âspace | (a space) non-breaking space | C2 A0 |
Money
| You see | It should be | UTF-8 bytes |
|---|---|---|
€ | € euro | E2 82 AC |
£ | £ pound | C2 A3 |
Â¥ | ¥ yen | C2 A5 |
₹ | ₹ rupee | E2 82 B9 |
¢ | ¢ cent | C2 A2 |
Letters
| You see | It should be | UTF-8 bytes |
|---|---|---|
é | é | C3 A9 |
è | è | C3 A8 |
ê | ê | C3 AA |
ë | ë | C3 AB |
á | á | C3 A1 |
Ãspace | à | C3 A0 |
â | â | C3 A2 |
ä | ä | C3 A4 |
ã | ã | C3 A3 |
ç | ç | C3 A7 |
ñ | ñ | C3 B1 |
Ãhidden | í | C3 AD |
î | î | C3 AE |
ï | ï | C3 AF |
ó | ó | C3 B3 |
ô | ô | C3 B4 |
ö | ö | C3 B6 |
õ | õ | C3 B5 |
ú | ú | C3 BA |
û | û | C3 BB |
ü | ü | C3 BC |
É | É | C3 89 |
Ö | Ö | C3 96 |
Ü | Ü | C3 9C |
ß | ß | C3 9F |
ø | ø | C3 B8 |
æ | æ | C3 A6 |
Emoji and other scripts
| You see | It should be | UTF-8 bytes |
|---|---|---|
😀 | 😀 emoji | F0 9F 98 80 |
ðŸ‘hidden | 👍 emoji | F0 9F 91 8D |
âhidden¤ | ❤ heart | E2 9D A4 |
✓ | ✓ check mark | E2 9C 93 |
न | न Hindi letter na | E0 A4 A8 |
ä¸hidden | 中 Chinese character | E4 B8 AD |
Can it always be fixed?
| You see | What happened | Fixable? |
|---|---|---|
café | Right bytes, read with the wrong rule | ✅ Yes, use the fixer |
café | The same mistake, twice | ✅ Yes, the fixer repeats |
caf√© | UTF-8 read as old Mac Roman | ✅ Yes, the fixer detects it |
caf� | The reader met bytes it couldn't decode and showed � | ⚠️ Reopen the original file with the right encoding. If � was saved, that letter is gone |
caf? | Saved into an encoding that has no é | ❌ The letter is gone. Use a backup |
□ | The font doesn't have that character | ✅ The text is fine. Try another font |
Stop it at the source
The rule is simple: use UTF-8 when you save and when you read. Find the step that doesn't.
Web page (HTML)
Put this near the top of <head>. It has to be within the first 1,024 bytes of the page. Save the file itself as UTF-8 too.
<meta charset="utf-8">
If the server sends a different encoding in its header, the header normally wins. It should say:
Content-Type: text/html; charset=utf-8
Excel and CSV files
Double-clicking a UTF-8 CSV can show broken letters. Import it instead: Data → Get Data → From File → From Text/CSV, and choose UTF-8 if it asks. If you create the CSV, save it as CSV UTF-8. That adds a small marker (a BOM) which tells Excel the encoding. In Python:
open("report.csv", "w", newline="", encoding="utf-8-sig")
MySQL
Use utf8mb4, not the old utf8 (utf8mb3). The old one allows at most three bytes per character, so it can't store most emoji. Set it on the connection as well as the table:
ALTER TABLE posts CONVERT TO CHARACTER SET utf8mb4;
SET NAMES utf8mb4;
That ALTER prevents new damage. It doesn't repair text that is already stored as café. To repair it, back up first and look at the result before changing anything:
SELECT body,
CONVERT(CAST(CONVERT(body USING latin1) AS BINARY) USING utf8mb4) AS fixed
FROM posts
WHERE body LIKE '%Ã%' COLLATE utf8mb4_bin
OR body LIKE '%â€%' COLLATE utf8mb4_bin;
Only update the rows where fixed looks right. Running it on good text can damage it.
Python
Say the encoding every time, because older versions use your computer's default:
text = open("notes.txt", encoding="utf-8").read()
# repair text that is already broken
"café".encode("cp1252").decode("utf-8") # 'café'
For messy real-world text, the free ftfy library does this more carefully.
The message needs a header that matches its real encoding. Most email libraries do this if you tell them to use UTF-8:
Content-Type: text/plain; charset="utf-8"
How to find the broken step
- Look at the raw bytes where the text is stored. For é you want
C3 A9. C3 A9is there? Then storage is fine, and whatever reads or displays it is wrong.C3 83 C2 A9? It was broken before it was saved. Fix the part that writes it.- Only
E9? The file is Windows-1252 or Latin-1. Convert it to UTF-8.
printf 'é' | xxd # c3 a9
xxd notes.txt | head # look inside a file
Quick answers
What does ’ mean?
It's a curly apostrophe (’) whose UTF-8 bytes, E2 80 99, were read as Windows-1252.
What does é mean?
It's é. Its two UTF-8 bytes, C3 A9, were shown as two separate characters.
Why is there an  before my £ or space?
£ is the bytes C2 A3 and a non-breaking space is C2 A0. The C2 shows up as an extra Â.
What is  at the start of my file?
It's a UTF-8 marker (BOM, bytes EF BB BF) read as Windows-1252. Read the file as UTF-8 with BOM (in Python, utf-8-sig). The fixer removes it.
Is Latin-1 the same as Windows-1252?
Almost. They differ for bytes 80 to 9F. On the web, browsers treat the label latin1 as Windows-1252.
Related: What Is an API? and What Does JavaScript Actually Do?
Sources
Like learning this way?
New animated explainers every week on YouTube and Facebook.


