ResourceInformation

Articles › Developer Pain

Why Does My Text Show é or ’? (Free Garbled Text Fixer)

By Resource Information · 28 November 2026 · 6 min read

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

Paste your text above.

    🔒 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.

    ONE LETTER, TWO BYTESé is saved as C3 A9. What you see depends on how it's readésaved as UTF-8 ↓C3A9read as UTF-8é ✓read as Windows-1252éNothing was lost. The bytes are fine, so the text can be fixed.
    Save with one rule, read with another, and one letter becomes two wrong ones.

    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 seeIt should beUTF-8 bytes
    ’’ apostrophe / right quoteE2 80 99
    ‘‘ left single quoteE2 80 98
    ““ left double quoteE2 80 9C
    â€hidden” right double quoteE2 80 9D
    –– short dash (en dash)E2 80 93
    —— long dash (em dash)E2 80 94
    …… three dotsE2 80 A6
    •• bulletE2 80 A2
    â„¢™ trademarkE2 84 A2
    婩 copyrightC2 A9
    娨 registeredC2 AE
    塡 degreeC2 B0
    ½½ halfC2 BD
    Ã—× multiplyC3 97
    Âspace(a space) non-breaking spaceC2 A0

    Money

    You seeIt should beUTF-8 bytes
    €€ euroE2 82 AC
    壣 poundC2 A3
    崴 yenC2 A5
    ₹₹ rupeeE2 82 B9
    墢 centC2 A2

    Letters

    You seeIt should beUTF-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 seeIt should beUTF-8 bytes
    😀😀 emojiF0 9F 98 80
    ðŸ‘hidden👍 emojiF0 9F 91 8D
    âhidden¤❤ heartE2 9D A4
    ✓✓ check markE2 9C 93
    नन Hindi letter naE0 A4 A8
    ä¸hidden中 Chinese characterE4 B8 AD

    Can it always be fixed?

    You seeWhat happenedFixable?
    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.

    Email

    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

    1. Look at the raw bytes where the text is stored. For é you want C3 A9.
    2. C3 A9 is there? Then storage is fine, and whatever reads or displays it is wrong.
    3. C3 83 C2 A9? It was broken before it was saved. Fix the part that writes it.
    4. 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.