Converting ANSI to UTF-8 in shell Converting ANSI to UTF-8 in shell bash bash

Converting ANSI to UTF-8 in shell


Put the output into another file. Don't overwrite the old one.

iconv -f "windows-1252" -t "UTF-8" import.csv -o new_import.csv

iconv fails when reading and writing to the same file.