Excel CSV Troubleshooting
How to Fix Excel CSV Garbled Accents & Stripped Leading Zeros
A CSV file has no built-in header for encoding, column types, or delimiters. When you double-click one, Excel guesses all three using your OS locale—and silently rewrites your data if you press Save.
1. Why Double-Clicking a CSV Breaks Accents, Columns, and IDs
Plain CSV is raw text. Unlike an .xlsx workbook, it carries no metadata declaring its character encoding, no column schema saying "Postal Code is text," and no flag naming whether commas or semicolons separate columns. Every time you double-click a .csv file in Windows Explorer or Finder, Excel skips its import dialog and invents all three rules from your operating system regional settings.
The bytes inside your Stripe, Shopify, or database export are usually fine. What breaks is Excel decoding UTF-8 bytes through a legacy single-byte ANSI code page (Windows-1252 on US/European Windows, Shift-JIS on Japanese Windows, GBK on Simplified Chinese Windows). In UTF-8, the letter é is two bytes (C3 A9). Read as Windows-1252, those two bytes render as é. The euro sign € (E2 82 AC) turns into €. If you edit one cell and hit Save, Excel writes that garbled text back to disk permanently.
| Symptom in Excel | Byte-Level Cause | What Actually Fixes It |
|---|---|---|
| Café displays as Café; € displays as € | File is UTF-8 without a 3-byte BOM (EF BB BF), so Excel falls back to Windows-1252. | Prepend UTF-8 BOM (EF BB BF) + CRLF, or import via Data → From Text/CSV with 65001: UTF-8. |
| Replacement diamonds () or broken Japanese/European names | Source file was actually saved in Windows-1252, Shift-JIS, or UTF-16LE rather than UTF-8. | Decode using the true source encoding first, then re-encode to UTF-8 with BOM. |
| ZIP 00123 becomes 123; 18-digit order ID becomes 9.87E+17 | Excel strips standard quotes ("00123") before type inference and coerces digits to numbers. | Use Power Query Text column type, or export Excel-only ="00123" text wrappers. |
| Entire row jammed into Column A (id;name;price) | European Excel exports use semicolons (;) because commas are decimal separators. | Convert ; delimiters to , while quoting fields that contain literal commas. |
2. UTF-8 BOM vs. Power Query vs. ="00123": Which Fix to Use
A common myth is that wrapping a ZIP code in double quotes—"00123"—forces Excel to keep the leading zero. It does not. Excel parses RFC 4180 quotes first, strips them off, sees five digits, and converts the cell to the integer 123 anyway. Adding a UTF-8 BOM fixes accented characters, but it does nothing for leading zeros or 16+ digit IDs.
You have two reliable options depending on who opens the file next. If you are opening the CSV yourself inside Excel, never double-click it: use Data → From Text/CSV (Power Query). In the preview dialog, set File Origin to 65001: Unicode (UTF-8), click Transform Data, delete the automatic "Changed Type" step in the right-hand Applied Steps pane, and explicitly set your ZIP/SKU/ID columns to Data Type: Text before clicking Close & Load.
If you are emailing a CSV to coworkers or clients who will inevitably double-click the attachment, Power Query instructions will not help. In that case, export with both UTF-8 BOM (so accents render on double-click) and Excel Leading-Zero Guard, which writes ="00123". Excel evaluates that expression as a fixed text string and displays 00123 intact. Never enable ="00123" for files going into a database, Python script, or Shopify API—those systems read the literal = and quotes as corrupted data.
| Method | Fixes Accents | Keeps 00123 & 18-Digit IDs | Safe for APIs / SQL / Shopify? |
|---|---|---|---|
| Double-click plain UTF-8 CSV | No (Windows) | No | Yes |
| UTF-8 with BOM (EF BB BF) | Yes | No | Usually (some strict CLI tools reject BOM) |
| UTF-8 BOM + ="00123" Guard | Yes | Yes (on double-click) | No — Excel human viewing only |
| Excel Data → From Text/CSV (Power Query) | Yes | Yes (set Text type) | Keeps original file untouched |
Do not fix mojibake with Find & Replace: Replacing é with é by hand misses dozens of other multi-byte sequences (smart quotes ’, em-dashes —, non-breaking spaces  ). Always repair encoding at the byte level from the untouched original export.
3. Repairing Broken Exports Locally in Under 30 Seconds
When you receive a garbled export from a legacy ERP, bank portal, or European vendor, avoid opening and re-saving it in Excel first. Once Excel overwrites 00123 with 123 or truncates a 19-digit tracking number to 15 significant digits (replacing the last four digits with zeros), that precision is gone forever.
- Drop the untouched original .csv file into the Fix for Excel preset (all parsing runs locally in your browser WebWorker—no upload).
- Check the detected source encoding badge. If the file came from legacy Windows or Japanese software, confirm accented characters look right in the Table Preview.
- Toggle Leading-Zero Guard (="00123") ONLY if recipients will double-click the file in Excel; leave it off for database or SaaS imports.
- Click Download for Excel (BOM) to export a UTF-8 BOM + CRLF file, or switch to JSON if you need strict string types for engineering workflows.