iconv
SafeConvert encodings
iconv -f SJIS -t UTF-8 <in> -o <out>
Converts encodings (Shift-JIS↔UTF-8 etc.) — the standard fix for garbled Windows CSVs. -c skips bad bytes.
Examples
iconv -f CP932 -t UTF-8 win.csv -o utf8.csvConvert a Windows CSV to UTF-8
Syntax
iconv -f <from> -t <to> <file> [-o out]
Before you run it
Creates a new file only.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store