StringMash.com

— is a broken em dash

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+2014): bytes E2 80 94
Printable chart

What — means

— is a broken em dash (—): your text was saved as UTF-8 but read as Windows-1252. It's the em dash, the long dash used to set off part of a sentence. Its UTF-8 bytes are E2 80 94, and Windows-1252 shows 94 as ”, so a broken em dash looks like a quote mark tacked onto â€.

WHY IT HAPPENS

Byte by byte

— (U+2014) in UTF-8, and what Windows-1252 makes of each byte
ByteIn UTF-8Windows-1252 shows
E2lead byte: 3 bytes in allâ
80continuation byte€
94continuation 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â€â€[U+009D]Yes
Saved as UTF-8, read as Mac OS Roman—No

Where you probably saw it

Articles and documents typed in a word processor, which turns two hyphens into an em dash as you type.

Web pages whose server sends no character set, or the wrong one, so the browser guesses Windows-1252.

Text that went through an old system or plugin that assumed Latin-1.

Related sequences

Text broken this way rarely has just one problem. – is a broken en dash, … is a broken ellipsis, ’ is a broken apostrophe. The mojibake fixer repairs all of them at once, and its table lists the rest.

Questions

What is —?

A broken em dash. The em dash is E2 80 94 in UTF-8, and Windows-1252 shows those bytes as â, € and ”.

How is it different from –?

– is a broken en dash, –. The last byte is 93 instead of 94.

Will fixing it change my hyphens?

No. Ordinary hyphens are plain ASCII and are never touched.

What does â€â€[U+009D] mean?

It's the em dash 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 em dash 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 em dash.

Sources

Added . Last updated and reviewed . What's new