Excel and CSV files
The text was saved as UTF-8 and then read as Windows-1252, so every accented letter turned into two or three odd characters. If you still have the original file, open it again with the right encoding and the accents come back. If you only have the broken file, the damage is usually reversible: Sift finds it and repairs José back to José, in your browser, with nothing uploaded.
Repair the accents in Sift, free →
In UTF-8, é is stored as two bytes. A program that reads the file as Windows-1252
(the older Western encoding Windows uses) shows each byte as its own character:
à and ©. Every accented letter breaks the same way, which is why
the pattern is so recognisable. Curly quotes take three bytes, so a right apostrophe turns
into ’. It has a name: mojibake.
Nothing is lost at this point. The bytes are all still there, just shown wrongly. That is
what makes it fixable. It stops being fixable once something has replaced the bytes with
? or with the replacement character �.
If you still have the original file, open it again, this time choosing the encoding:
If you only have the broken file, the manual fix is Find and Replace, one
pair at a time: é with é, ü with ü, and
so on. It works, but you need a pair for every letter in your data, and a few letters (such as
Á and Í) break into à plus an invisible character you
cannot easily type into the box.
We garbled real names the way a UTF-8 to Windows-1252 mix-up does, then ran them through Sift's repair function, the same code the app uses. Actual outputs:
The repair only changes a value when its characters map back to bytes that are valid UTF-8.
Text that merely looks similar, like SÃO PAULO, is left exactly as it is.
José), the
first pass gives José and the fix is offered again. Approve and apply it once
more to get José.Jos? and
Jos� stay as they are. The original bytes were replaced, so no tool can know
the letter was é. In a column of names, Sift lists values with � in the Outliers
log on the Audit tab so you can fix them by hand. A plain ? is not flagged.Ã,  or †before it tries a repair. Letters like
ł, ę, Ł and đ break into
Å or Ä patterns instead, and € breaks into
€. In our test, Wałęsa and €100 were left
unchanged. (A name like Dvořák is still repaired, because its á supplies the
Ã.)José arrives as
Jos�, which cannot be repaired. Open it in Excel with From Text/CSV, set File
Origin to the file's real encoding, save it as CSV UTF-8 (Comma delimited), and load that
instead.é again when you open it, import it with File Origin set
to UTF-8, or use Download .xlsx, which has no encoding to guess.Garbled accents are one of several things Excel does to a CSV. Leading zeros, dates and long numbers are covered in Excel ruined your CSV.