CSV Opens in One Column or Shows Weird Characters? Fix It
You open a CSV file and either every value sits in a single column, or accented letters turn into question marks and symbols such as é. Both problems have simple causes.
Problem 1: the wrong delimiter
CSV means comma-separated, but not every program uses a comma. In many European countries the comma is the decimal mark, so spreadsheet programs export with a semicolon instead. Other tools use tabs, which gives you a TSV file, or pipes.
To check, open the file in a plain text editor and look at the characters between the values. Then either import it with the correct delimiter in your spreadsheet program or convert it to commas.
Problem 2: the wrong encoding
A text file does not say how its characters are stored. Most modern files use UTF-8, but Excel on Windows often saves CSV in a legacy code page such as Windows-1252. If the reader guesses wrong, é turns into é.
- In Excel, choose Save As, CSV UTF-8.
- In LibreOffice, tick the Unicode option in the export dialog.
- Importing? Use Data, From Text/CSV and set the file origin to 65001: UTF-8.
Problem 3: quotes and line breaks
A value that contains a comma must be wrapped in double quotes, and a quote inside a value is written twice. A decent CSV reader handles this; a naive one splits on every comma and shifts your columns. The viewer on the CSV page follows the standard rules, so quoted commas and multi-line cells stay in place.
Problem 4: lost leading zeros and long numbers
Excel turns 00123 into 123 and long IDs into 1.23E+15 when it opens a CSV. The raw file is still fine. Import the column as text, or view the file in a tool that does not convert values.
Quick checklist
- Open in a text editor and find the delimiter.
- Confirm UTF-8 encoding.
- Check for quoted fields with commas or line breaks.
- Import columns as text if they contain IDs or zip codes.