CSV Encoding Problems: UTF-8, BOM and Delimiters

Diagnose garbled characters, broken columns and quoted delimiters in CSV files.

Why this matters

Excel and spreadsheet software may infer separators from regional settings; commas and semicolons are not interchangeable.

Worked example

Start with this sample input:

name,city
Zoë,München

Example result or interpretation (check the linked tool for exact formatting):

Two columns and one data row

If Zoë becomes Zoë, the file was probably decoded using the wrong character encoding.

Encoding and CSV quoting are separate problems

Encoding decides how bytes become characters; CSV quoting decides how delimiters and line breaks are represented within cells. A file can be valid UTF-8 yet parse into incorrect columns because the delimiter was guessed incorrectly.

Symptoms and diagnoses

Mojibake

Zoë

Interpretation: Likely UTF-8 bytes decoded as another encoding

Quoted delimiter

"Leeds, UK",42

Interpretation: Comma belongs inside first field

Embedded newline

"line one\nline two",42

Interpretation: Quoted cells may span physical lines

A UTF-8 BOM can help some spreadsheet applications recognize encoding, but may become part of the first header in simplistic parsers.

Step-by-step workflow

  1. Check whether the file is UTF-8 and whether it includes a BOM.
  2. Preview delimiter detection and inspect several rows.
  3. Export and reopen a small sample before processing the full file.

Try the related ByteKitly tool →

Common mistakes and limitations

Quoted cells can contain commas and line breaks; splitting on every comma corrupts valid CSV.

Test examples using your own data format and verify results before using them in production systems. ByteKitly's core converters operate in the browser, but avoid sharing confidential input in screenshots or links.

Continue learning

Browse all developer guides or explore all ByteKitly tools.