What a “UTF-8 error” actually is
This guide is the diagnostic companion to Strange characters or everything in one column?. That guide shows how to save a clean file; this one helps you work out which encoding problem you have, and whether the damage can be undone.
Every character in a CSV is stored as bytes. UTF-8 stores é as two bytes (C3 A9). A program that wrongly assumes Windows-1252 reads those two bytes as two characters, à and ©, and shows é. The bytes were fine; the reader picked the wrong decoder. The damage only becomes permanent when a program saves the wrongly decoded text, or replaces characters it cannot represent. That gives three situations:
- Display problem. The file is fine and the program opening it guessed wrong. Open it with the right encoding. Nothing to repair.
- Saved in the wrong encoding. The file holds legacy bytes (usually Windows-1252) and Shopify expects UTF-8. Convert it. This is recoverable if you open the file with its true source encoding first.
- Characters destroyed. Accented letters were replaced by
?or�when the file was saved. That information is no longer in the file; go back to the source.
This matters beyond looks. Shopify matches products by handle when you overwrite, so a handle whose characters changed will not match the product already in your store.
Match your symptom to the cause
| What you see | What it usually means | Recoverable? |
|---|---|---|
| “Illegal quoting on line 47” in Shopify’s import | Shopify’s help page says the file must be UTF-8 for this error. Curly or stray quotes can cause it too; see Fix “Illegal quoting on line X”. | Usually yes |
Café, Rock’s, “saleâ€, ® in titles or descriptions | UTF-8 text was read as Windows-1252 and saved that way (“mojibake”). | Yes: see the repair section |
? where a letter should be, as in Caf? Mug | The characters were replaced when the file was saved in an encoding that cannot hold them. | No: re-export from the source |
A black diamond with a question mark (�) | The reader met bytes it could not decode. If it only shows on screen, open the file with the right encoding. If it is stored in the file, the original letter is gone. | Depends |
Handle as the first header | A UTF-8 byte-order mark (BOM) shown as text by a program reading Windows-1252. | Yes |
| Looks right in Excel, wrong in Shopify | Excel shows text using your system’s legacy code page, and “CSV (Comma delimited)” saves in it too. | Yes: re-save as UTF-8 |
Everything in one column, or cells split by ; | A separator problem, not an encoding problem. See the separators guide linked above. | Yes |
| Accented letters in tags | Shopify recommends avoiding accented characters and symbols in tags, even in a valid UTF-8 file. | Yes: edit the tags |
Find out what encoding your file really has
Do this before changing anything. Guessing is how files get garbled twice.
- VS Code: the status bar at the bottom right shows
UTF-8orWindows 1252. Click it and choose Reopen with Encoding to try others until the accents look right. - Notepad (Windows 10 and later): File → Save As. The Encoding box shows what Notepad detected:
ANSIis a legacy encoding,UTF-8andUTF-8 with BOMare Unicode.
# Linux
file -bi products.csv
# macOS
file -I products.csv
# Is it valid UTF-8? Silence means yes, an error means no.
iconv -f UTF-8 -t UTF-8 products.csv > /dev/nullcharset=utf-8 and a silent iconv mean the bytes are valid UTF-8. iso-8859-1 or unknown-8bit usually means Windows-1252 (the file command cannot tell the two apart), and us-ascii means the file has no accented characters at all.
Re-save the file correctly
Open the file using the encoding it is really in, confirm the accents look right, and only then save as UTF-8. If you re-save text that was read with the wrong encoding, the garbage is saved with it.
- Excel (recent versions): File → Save As → CSV UTF-8 (Comma delimited). The similarly named “CSV (Comma delimited)” saves in your system’s legacy code page, which is Windows-1252 on most Western Windows installations. To open an existing UTF-8 CSV without garbling it, use Data → From Text/CSV and set File Origin to 65001: Unicode (UTF-8). Menu names vary slightly between versions, and Excel’s CSV UTF-8 option writes a byte-order mark.
- Google Sheets: File → Download → Comma Separated Values (.csv). Shopify’s help page notes that Google Sheets saves in UTF-8 by default.
- LibreOffice Calc: File → Save As → Text CSV, tick Edit filter settings, then choose Character set Unicode (UTF-8), Field delimiter
,and String delimiter". - VS Code (repairs the file you have): click the encoding in the status bar → Reopen with Encoding → the real source encoding (often Western (Windows 1252)); check the accents; click it again → Save with Encoding → UTF-8; then click
CRLFand chooseLF. - Command line:
iconv -f WINDOWS-1252 -t UTF-8 products.csv > products-utf8.csv, only when you know the file really is Windows-1252.
Repair text that already says Café
If Café is stored in the CSV itself, the file is valid UTF-8 that contains the wrong characters, because the text was converted twice somewhere. Changing the save encoding will not help. Each pattern below is what the real character becomes when UTF-8 is read as Windows-1252:
| Real character | What you will see |
|---|---|
| é | é |
| è | è |
| ü | ü |
| ö | ö |
| ñ | ñ |
| ç | ç |
| ’ (apostrophe) | ’ |
| “ (opening quote) | “ |
| ” (closing quote) | †followed by an invisible character |
| – (en dash) | – |
| — (em dash) | — |
| ™ | â„¢ |
| ® | ® |
| © | © |
| € | € |
| £ | £ |
| ° (degree) | ° |
For a handful of cells, Find and Replace is enough. For a whole catalogue, this Python snippet repairs only the mojibake and leaves everything else alone. It uses the ftfy library (pip install ftfy):
import csv
import ftfy
with open("products.csv", encoding="utf-8", newline="") as f_in, \
open("products-fixed.csv", "w", encoding="utf-8", newline="") as f_out:
reader = csv.reader(f_in)
writer = csv.writer(f_out, lineterminator="\n")
for row in reader:
writer.writerow([ftfy.fix_encoding(cell) for cell in row])Keep your original file, and check a few dozen rows, including ones with quotes and dashes, before you import.
When the characters are already gone (? and �)
A ? or � that is stored in the file replaced the original letter, and no tool can know which letter it was. Re-export the data from the original system (supplier portal, WooCommerce, your previous platform or Shopify) and choose UTF-8, restore the text from another copy such as a backup or a supplier sheet, or retype the few affected products. Search the Title and Body columns for � before importing.
Valid UTF-8, and Shopify still objects
- Curly quotes. Shopify’s help page lists curly quotes among the causes of “Missing or stray quote” errors.
- Accented characters in tags. Shopify recommends avoiding accented characters and symbols in tags.
- Handles. Shopify says a valid URL handle can contain letters, dashes and numbers, but no spaces.
- Line endings and separators. Shopify asks for LF-style line endings and comma-separated columns.
What ShopiClean does with encoding
Disclosure: ShopiClean is our own product. Everything in this guide can be done by hand in a spreadsheet; the tool simply automates the checks. The scan and the on-screen 5-row preview are free, and downloading the repaired file needs a 7-Day Pass ($9).
What it does:
- Reads your file’s raw bytes and keeps valid UTF-8 as it is.
- Detects a file that is not valid UTF-8, reads it as Windows-1252, saves the result as UTF-8 with LF line endings, and tells you it did so.
- Strips a byte-order mark when reading and writes UTF-8 without one.
- Converts semicolon- or tab-separated files to commas, and warns about rows that contain
�. - Keeps accents in titles and descriptions; in generated handles it replaces them with plain letters (
cafébecomescafe).
What it does not do:
- It does not repair text that already contains garbled characters. In our test, a file that literally contained
Cafécame out unchanged. Use the script above. - It cannot bring back
?or�that were saved into the file. - Encoding detection is a best guess. It falls back to Windows-1252, so a file from a system that uses another legacy encoding (Windows-1251, Shift JIS, GBK and similar) will show the wrong characters. Convert such files with the correct source encoding first, and spot-check accented words in the result.
Test with three products before the full import
- Export your current products from Shopify as a backup.
- Make a three-row CSV with
é,ñ,’and™in titles and descriptions. - Import it with Overwrite products with matching handles turned off.
- Open each product and check the title, description and URL handle.
- If they are correct, import the full file. If not, return to the symptom table.
Sources and how this guide was checked
The Shopify behaviors described above were checked against the Shopify Help Center pages below on 8 November 2026. Shopify can change how imports work, so if something here differs from what you see, trust Shopify’s documentation.