文字化けしたCSVをExcelで正しく開きたい Fix a garbled CSV so Excel opens it correctly
日本語のCSVがExcelで文字化けするのは、多くの場合、文字コードの違いが原因です。 Garbled Japanese text in a CSV opened by Excel is usually a character-encoding mismatch.
システムから書き出したCSVをExcelで開いたら、日本語部分が文字化けして読めなかった、という場面です。 You open a CSV exported from a system in Excel, and the Japanese text is garbled.
使うツール:文字コード変換(+CSV BOM付与) Tool: Charset Fix (+ CSV BOM)- 前にすること Before
文字コードのズレを疑う Suspect an encoding mismatch
日本語Windows版のExcelは、拡張子.csvのファイルをShift_JISとして開こうとします。データがUTF-8で書き出されていると、日本語部分が文字化けします。 Japanese Windows Excel tends to open .csv files as Shift_JIS. If the data was exported as UTF-8, the Japanese text appears garbled.
- napps でやること In napps
napps で変換する Convert in napps
「文字コード変換」でファイルの文字コードを整えます。UTF-8のまま使いたい場合は「CSV BOM付与」で、Excelが認識しやすい形式にできます。 Use Charset Fix to convert the encoding. To keep UTF-8, add a BOM with CSV BOM so Excel recognizes it correctly.
文字コード変換(+CSV BOM付与) を開く Open Charset Fix (+ CSV BOM) - 後にすること After
Excelで開いて確認する Open in Excel and check
変換したファイルをExcelで開き、日本語や記号が正しく表示されるか確認します。 Open the converted file in Excel and confirm the Japanese text and symbols display correctly.
- 注意 Caution
元ファイルも保管する Keep the original file too
変換前のファイルは別名で残しておきましょう。システムへの再取り込みなどで、元の形式が必要になることがあります。 Keep the pre-conversion file under a different name—you may need the original format when re-importing to a system.