New Tool Radar

AI for Data & Spreadsheets

How to Fix Garbled Characters in a CSV Import Into Excel

Fix garbled characters in a CSV import into Excel by choosing the right file origin encoding.

Schematic with three steps: Find a garbled value and note what; Re-import and set the File Origin to; Check every affected column after loading.

Names with accents or characters from another alphabet can arrive as garbled symbols such as é instead of é, because Excel read the file with the wrong character encoding. The data is not lost; it was decoded with the wrong map. Re-import the file and pick the encoding it was written in, usually UTF-8, before trying to fix the characters by hand.

What you need

  • The CSV file with garbled characters
  • Excel with a blank workbook
  • A note of the language the file’s text is in

Step 1: Find a garbled value and note what it should be

Open the imported sheet and find one garbled name or word, then work out from the source what it should read. The pattern of the garbled text hints at the encoding: UTF-8 read as Windows-1252 is the common case.

Step 2: Re-import and set the File Origin to UTF-8

Import the file again through the Text Import Wizard and set File Origin to 65001: Unicode (UTF-8) in step 1. Check the preview: the accented characters must now display correctly.

Step 3: Check every affected column after loading

After loading, scan the columns that hold names and addresses for any remaining garbled characters. If some remain, the file may use a different encoding, so try the encoding for its language next.

Worked example: synthetic name list with accents

The table below is a synthetic example. It shows the expected result of fixing a CSV encoding; no file was imported.

Check Value Result
Names in the file 8 With accents
Names garbled after open 5 Accents shown as symbols
Example garbled value José Should read Jose with an accent
File Origin chosen on re-import UTF-8 (65001) Matches the file
Names correct after re-import 8 All accents display

Expected result (UNTESTED). 5 of 8 names arrive garbled after opening the file directly, with Jose shown as José; re-importing with File Origin UTF-8 shows all 8 names correctly. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A file written in another encoding, such as Cyrillic Windows-1251, needs that encoding, not UTF-8.
  • Find and Replace cannot reliably repair garbled characters; the same symbol can stand for different letters.
  • A CSV with a byte-order mark usually imports correctly; one without it may need the encoding set by hand.
  • Garbling that is already in the file, before Excel opens it, cannot be fixed by changing the import.

Sources

See all