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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store