Saltar al contenido
  1. Blog
  2. Files

FilesEncodingCSVTroubleshooting

Garbled text is not corruption — it is the wrong reading

A CSV opens as nonsense in Excel; an email subject line is unreadable. The file is not damaged: it was written in one encoding and read in another.

Written by the site’s operator3 min read
Real mojibake
The Japanese Wikipedia, displayed using the wrong text encoding.Photo: Nameneko / CC BY-SA 4.0 / Wikimedia Commons

You open a CSV in Excel and it is full of nonsense. The instinctive reading is that the file broke. Usually it did not.

The contents are intact; only the interpretation differs. Open it the right way and it comes back exactly as it was. Without knowing that, people throw away files that were never damaged.

E3 81 82 E3 81 84
Read as UTF-8
あい
Read as Shift_JIS
ãģĤãģĦ
Not one byte of the file has changed. Only the reading did.
The same sequence of bytes becomes different characters depending on the rules used to read it. Nothing is broken.

Why CSVs come out garbled in Excel

Most systems export CSV as UTF-8, while Excel, depending on the environment, opens a .csv as the legacy local encoding instead. The bytes are UTF-8; the rules applied are not.

There are three ways out.

  1. Save as UTF-8 with BOM — a short marker at the start saying “this is UTF-8”. Excel honours it. The least friction, and nothing to explain to the recipient.
  2. Import rather than open — Data → From Text/CSV lets you choose the encoding, leaving the file untouched.
  3. Have it exported in the legacy encoding — reliable where supported, but characters outside that set are lost, so it is hard to recommend first.

Other ways text breaks

  • Only the email subject is garbled — subject lines are encoded separately from the body. Something sent by old software may not decode in current clients. If the body reads fine, the file is not the issue.
  • Certain symbols break — characters that were platform-specific extensions land differently, or as blanks, elsewhere. Best avoided in anything leaving the organisation.
  • One dash character breaks — there are visually near-identical variants (U+301C and U+FF5E), and conversions have swapped them for decades.
  • Half-width kana vanish or scramble — a legacy of older standards, handled inconsistently. Normalising to full width avoids the problem.

Tools that help

To see how a CSV is actually being parsed, paste it into CSV ⇄ JSON converter — the table it produces shows exactly how the rows were split. Since you can choose the delimiter, it also separates “wrong encoding” from “wrong delimiter”.

For inconsistent width in kana and symbols, full-width / half-width converter normalises them, and lets you convert alphanumerics while leaving kana alone — useful for tidying address lists.

In short: when you see mojibake, suspect the reading before the file. Keep the original and try opening it as something else. Done in that order, you usually lose nothing at all.

Tools for this article

Share this article
Share on X

Read next

Files

Is it safe to upload your files to an online tool?

That small hesitation before you drop a PDF onto a converter site. Here is what actually differs between upload-based and in-browser tools, and how to check which one you are looking at yourself.

#Safety#In-browser processing
Files

ローカル画像生成AIのはじめ方。手元のゲーミングPCで、実写もイラストも作れる

自分のPCで画像生成AIを動かす「ローカル画像AI」の入門。回数制限や月額を気にしなくていい理由、必要なPCの目安(VRAM)、実写・アニメ・高速生成の代表的なモデル、ComfyUIなどのソフト、導入の流れ、設定値、LoRAやControlNetなどの発展機能まで。

#画像#AI
Files

24-bit or 32-bit float, 44.1 kHz or 48 kHz? Choosing audio settings

24-bit, 32-bit float, 44.1 kHz, 48 kHz. Does a bigger number mean better sound? What sample rate and bit depth each do, and which to pick for music, video and handing work over.

#Files#Settings
Files

WAV, FLAC, MP3 or AAC? Which format to keep and which to send

Audio formats affect file size and editability as well as quality. The difference between lossless and lossy compression, and which of WAV, FLAC, MP3 and AAC to use for working files, archiving and sharing.

#Files#Conversion
Files

“Can you make this image smaller?” — smaller how?

Dimensions, file size and quality are three different things. Which one you move changes the work entirely. Here is how to pick, and how to do each.

#Images#Files
Files

Merging PDFs — order, and what gets left behind

How to combine several PDFs into one, and what the result quietly loses. Worth knowing before you send a contract or an application.

#PDF#Files

All articles