StringMash.com

’ is a broken apostrophe

Your text was saved as UTF-8 and read as Windows-1252. Paste it below and it's put right.

48 characters
Updates as you type

Correct text is left as it is

Show the steps
  1. Each garbled run was turned back into the bytes Windows-1252 showed, then read as UTF-8, as it should have been.
  2. ’ → ’ (U+2019): bytes E2 80 99
Printable chart

What ’ means

’ is a broken apostrophe (’): your text was saved as UTF-8 but read as Windows-1252. It's the curly apostrophe, ’, the one in it’s and don’t that word processors put in automatically. Of all the broken sequences it's the one people see most, because almost every English text has apostrophes in it.

WHY IT HAPPENS

Byte by byte

’ (U+2019) in UTF-8, and what Windows-1252 makes of each byte
ByteIn UTF-8Windows-1252 shows
E2lead byte: 3 bytes in allâ
80continuation byte€
99continuation byte™

Broken twice, or on a Mac

Other ways ’ gets garbled, and whether this page's fixer undoes them
What happenedWhat you seeFixed here?
Saved as UTF-8, read as Windows-1252 (this page)’Yes
The same mistake made twice’Yes
Saved as UTF-8, read as Mac OS Roman’No

Where you probably saw it

Text pasted from a word processor into a website, an email or a database, where the apostrophes were curly to begin with.

Product descriptions and blog posts after a site moved to a new server or database, when every it’s became it’s at once.

A CSV export opened straight in Excel, which reads it as Windows-1252 unless told otherwise.

Related sequences

Text broken this way rarely has just one problem. “ is a broken opening quote, †is a broken closing quote, — is a broken em dash. The mojibake fixer repairs all of them at once, and its table lists the rest.

Questions

Why does ’ appear instead of an apostrophe?

The apostrophe ’ is three bytes in UTF-8, E2 80 99. Read as Windows-1252, those bytes are â, € and ™.

Can I just replace ’ with an apostrophe?

Yes, find and replace works for this one sequence. The fixer above does it for every sequence at once, and leaves correct text alone.

Will the fixer turn it into a straight apostrophe?

It gives back the curly ’ that was there. Set Curly quotes to Make straight if you want ' instead.

What does ’ mean?

It's the apostrophe broken twice. Text already showing ’ was saved as UTF-8 again and misread again, so each of those characters turned into two or three more. The fixer above repeats the repair until nothing is left to undo, so it fixes this too.

What about ’?

That's the apostrophe read by older Mac software, which used the Mac OS Roman character set instead of Windows-1252. The same UTF-8 bytes come out as different characters. The fixer here only undoes the Windows-1252 mistake, so for this one open the file again as UTF-8, or retype the apostrophe.

Sources

Added . Last updated and reviewed . What's new