Skip to main content
MyDataFixer

Strange characters in a CSV file (é, ’): how to fix encoding problems

By the MyDataFixer team · Updated

The short answer

Text like é instead of é, or ’ instead of an apostrophe, means the file was saved in one encoding (usually UTF-8) and opened as another. The data is usually fine. Open the file again and tell the program it is UTF-8. When you save CSV files, choose UTF-8.

What an encoding is

A computer stores every letter as numbers. An encoding is the table that says which numbers mean which letter. For plain English letters, almost all encodings agree. For letters like é, ü, ñ, symbols like € and £, and scripts like Hindi or Tamil, they don't. If a file is written with one table and read with another, those characters turn into nonsense.

Today almost everything uses UTF-8, which can store every language. Older programs, especially older versions of Excel on Windows, often use Windows-1252 instead.

What the strange characters mean

Common signs of an encoding mix-up
You seeIt should beWhat happened
CaféCaféUTF-8 file opened as Windows-1252
don’tdon't (curly apostrophe)UTF-8 file opened as Windows-1252
€500€500UTF-8 file opened as Windows-1252
M�llerMüllerWindows-1252 file opened as UTF-8

The first three are the most common: the file is fine, it was just opened the wrong way. The last one, with the � sign, means the program couldn't read a character at all.

Why it happens

  • Double-clicking a CSV in Excel. Excel doesn't always recognise UTF-8 files, unless they start with a small invisible marker called a BOM.
  • Old exports. Some older systems save Windows-1252 files, and modern tools read them as UTF-8.
  • Copying between programs that use different encodings.

Fix it in Excel

These steps are for Excel on a Windows or Mac computer. The Excel app on phones and tablets doesn't have these menus; on a phone, use Google Sheets or MyDataFixer instead.

Open the file as UTF-8

  1. Open a new, empty workbook.
  2. Go to Data → From Text/CSV and choose the file.
  3. At the top of the preview, set File Origin to 65001: Unicode (UTF-8). The preview should now show the right letters.
  4. Click Load.

Save the file as UTF-8

Use File → Save As and choose CSV UTF-8 (Comma delimited). Excel adds the BOM marker, so it opens correctly next time.

Fix it in Google Sheets

Google Sheets reads CSV files as UTF-8, so UTF-8 files open correctly with File → Import. If a file still shows � signs, it was probably saved as Windows-1252. Open it in MyDataFixer (below), choose Windows-1252, and download a UTF-8 copy.

Fix it with MyDataFixer

Open the CSV in the CSV Validator. It detects the encoding by itself. If the letters in the preview look wrong, choose another encoding from the “Text encoding” box: UTF-8, Windows-1252 or ISO-8859-1 (and UTF-16 when the file starts with a BOM). The file is read again; it is never changed.

When you download, the file is always saved as UTF-8. Choose with BOM if it will be opened in Excel, or without BOM for databases and most other programs. MyDataFixer never replaces unreadable characters silently: if the chosen encoding doesn't fit the file, it tells you. Your file stays on your device.

What is a BOM?

A BOM (byte order mark) is an invisible marker at the very start of a file that says “this is UTF-8”. Excel uses it to recognise UTF-8. Many databases and scripts, however, don't expect it and may show it as strange characters () at the start of the first column name. So: with BOM for Excel, without BOM for databases.

How to avoid it next time

  • Always save CSV files as UTF-8.
  • Open CSV files with Data → From Text/CSV in Excel instead of double-clicking.
  • Ask senders to export as UTF-8, especially for names with accents or non-English text.

From start to finish: an example

Rahul gets a customer list from a supplier in Germany. In Excel, names show as “Müller” and “Götz”. He closes the file without saving. He opens a new workbook, uses Data → From Text/CSV, sets File Origin to 65001: Unicode (UTF-8), and the names show correctly as “Müller” and “Götz”. Before sending the list on to a colleague, he saves it as CSV UTF-8, so the names stay correct on the next computer too.

Quick summary

é and ’ mean a UTF-8 file was opened as Windows-1252. Re-open it as UTF-8 (File Origin 65001 in Excel), save CSV files as UTF-8, and use the CSV Validator to read files with other encodings and download a clean UTF-8 copy.

Common mistakes

  • Fixing the characters by hand with Find and Replace. It takes long and misses some. Re-open the file correctly instead.
  • Saving the broken version. If you save after the letters went wrong, the wrong letters are written into the file.

Fix it in your browser

Free, no sign-up. Your file is processed on your device and never uploaded.

Questions and answers

Is my data damaged?

Usually not. The file was only opened with the wrong encoding. Open the original again as UTF-8, without saving the broken version.

Why does my file look fine in Google Sheets but not in Excel?

Google Sheets reads UTF-8 by default. Excel may not, unless the file has a BOM. Save as CSV UTF-8 or use Data → From Text/CSV.

What does  at the start of my file mean?

It's a BOM shown by a program that doesn't expect it. Save the file as UTF-8 without BOM for that program.

Which encoding should I use?

UTF-8. It supports every language and is expected by Google Sheets, databases and most modern programs.

Why do Hindi or Tamil letters show as question marks?

The file was saved in an encoding that can't store those letters, such as Windows-1252. Save it again as UTF-8 from the original source; question marks that are already in the file can't be turned back into letters.

Does MyDataFixer upload my file?

No. The file is read and checked in your browser, on your device.