You open a customer export and the data looks almost right. The numbers add up, the columns line up, but the names are wrong in a strange, consistent way: José has become José, Müller reads Müller, and every pound sign has a stray  in front of it. The data is not corrupt and nobody typed those characters. The file has an encoding problem, and the damage follows patterns you can learn to scan for.

This guide explains how to recognise that damage, check a file for it with the free CSV Viewer and Editor on Ovatly, and where the actual fix happens: not in the viewer, but back at the system the file came from.

Contents

  • Quick answer
  • What encoding damage looks like
  • Why it happens
  • How to check a file, step by step
  • Worked example: one garbled name, before and after
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Open the CSV in the CSV Viewer and Editor and scan the columns that hold names, addresses and notes. Look for the signature pattern: a single accented character replaced by two odd characters, such as à followed by a second symbol, and currency signs carrying a stray Â. Digits and plain English will look normal, so judge the file by its accented text, not its numbers. The viewer cannot repair this, because it has no encoding picker or conversion feature. Export the data again from the source system with UTF-8 selected, then open the new file in the grid and scan again to confirm the characters are whole.

What encoding damage looks like

A character encoding is the table a program uses to turn bytes in a file into characters on screen. When the table used to read the file is not the table used to write it, some characters come out wrong. Text damaged this way is called mojibake, and it has a recognisable shape.

The most common case is a file saved as UTF-8 and read as a single byte encoding such as Windows-1252. In UTF-8, an accented character like é takes two bytes. A single byte reader treats each byte as its own character, so é appears as é: two characters where one should be. A ü becomes ü, a £ becomes £, and a curly apostrophe can become a three character string starting â. The pattern to learn is simple: a capital à or  in the middle of an ordinary word is almost always encoding damage, not a typing error.

The second thing to notice is what survives. Letters A to Z, digits, commas and full stops are stored the same way in UTF-8 and in the single byte encodings, so they decode identically under both. A damaged file reads perfectly in its numeric columns, and only the names, places and symbols are broken. That split is itself a clue: clean numbers and broken accented words means encoding, not bad data entry.

Why it happens

Somewhere between the system that produced the file and the program that opened it, the encoding information got lost or ignored. An export tool saved UTF-8 without saying so, a spreadsheet opened the file assuming its own regional default, or the file passed through a system that converted it silently. CSV carries no reliable place to declare an encoding, which is why this format suffers so often: every program that touches the file has to guess, and the guesses do not always match.

Knowing the cause matters because it decides the fix. The data in the source system is usually intact: it was written out with the wrong label, or read with the wrong assumption. So the repair is a fresh export with the encoding chosen deliberately, not hand editing the garbled copy.

How to check a file, step by step

  1. Open the CSV Viewer and Editor and load the CSV. The first row is treated as the header and stays fixed while you work, so you can keep track of which column you are scanning.
  2. Go to the columns most likely to hold accented text: names, cities, product descriptions, notes. Scan down them looking for à and  characters sitting inside words, and for currency signs with a stray character in front.
  3. Sort a name column alphabetically by clicking its header, which gathers the odd entries together for a quick scroll. On very large files the grid shows the first 500 matching rows, while sorting and filtering still work on the full data, so use the filter search to pull up rows containing a suspect character.
  4. Check a symbol column too, for doubled characters around the currency sign. One confirmed garbled entry diagnoses the whole file: encoding applies to the file as a unit, not row by row.

Worked example: one garbled name, before and after

An export from a billing system arrives like this:

name,city,amount
José,São Paulo,£50
Ana,Lisbon,£25
Ben,Leeds,£40

Look at what is broken and what is not. The plain English names and cities, Ana, Lisbon, Ben, Leeds, read perfectly, because those characters are stored identically in both encodings. Everything outside that shared set is damaged: José's name, São Paulo, and every pound sign. Nothing about the values is wrong. The file was saved as UTF-8 and read as a single byte encoding.

The fix is made in the billing system, not in the grid: export the same report again and choose UTF-8 as the encoding. The new file, opened in the viewer for a second scan, reads:

name,city,amount
José,São Paulo,£50
Ana,Lisbon,£25
Ben,Leeds,£40

Single accented characters, clean pound signs, and the undamaged text unchanged. That before and after comparison in the grid confirms the re-export worked.

Limitations and honest tradeoffs

The viewer's role in this job is display, and it is worth being precise about that. It has no encoding picker, no conversion feature and no repair button. It shows the file the way your browser decodes it, which is exactly what makes it a good checking surface: what you see in the grid is what other tools will most likely make of the file too. But editing inside the viewer never fixes an encoding at the file level.

There is also damage a re-export cannot cure. If the garbled text was saved back into the source system at some point, so the database itself now holds José as the stored name, then a fresh UTF-8 export faithfully reproduces the garble, and the stored values have to be corrected in the source. That slower job is another reason to catch encoding problems at the first export rather than the tenth.

Common mistakes

  • Hand editing every garbled name in the grid. That repairs this one copy, cell by cell, and the next export arrives garbled again. Fix the export setting instead.
  • Judging the file by its numbers. Numeric columns survive a wrong encoding untouched. A file can total correctly and still have every accented name in it broken.
  • Assuming one clean row means a clean file. Rows without accented characters show no damage. Diagnose from the rows that contain names, places and symbols.
  • Losing track of which file is fixed. Keep the re-exported file clearly named, and verify it in the grid before it replaces the garbled one.

FAQs

What is mojibake? Mojibake is the garbled text that appears when a file is saved in one character encoding and read in another. The classic sign is one accented character turning into two odd characters, because its two UTF-8 bytes were each read as a separate character by a single byte encoding.

Can the viewer fix the encoding for me? No. The viewer has no encoding picker and no conversion feature; it displays the file the way the browser decodes it. The repair happens at the source: export the data again with UTF-8 chosen as the encoding, then open the new file to check it.

Why do the numbers look right while the names are garbled? Digits, commas and basic English letters are stored identically in the common encodings, so they decode correctly either way. The damage only hits characters outside that shared set: accented letters, currency signs, apostrophes and dashes.

How do I know the re-export actually fixed it? Open the newly exported file in the viewer and scan the same columns again. Names should show single accented characters and currency signs should appear as themselves. If the same two-character patterns are still there, the export was not saved as UTF-8.

Is my file uploaded to a server for checking? No. The file is processed locally in your browser and nothing is uploaded, so you can inspect exports that contain customer names and figures without sending them anywhere.

Conclusion

Encoding problems announce themselves, once you know the accent doubling pattern to look for and remember to judge a file by its names rather than its numbers. The CSV Viewer and Editor gives you a quick, local way to scan an export and to confirm the UTF-8 re-export that actually fixes it. Once a list reads cleanly, the next job is checking it is fit to send, which our guide to inspecting a mailing list CSV before uploading it covers. For more guides in this series, see our Data and JSON Tools guides.

References