Unix command to convert character encoding in a .csv file

character encodingcommand

I need a Unix command to convert a .csv file that is in UNICODE format to ANSI format.

The file is imported from the Cognos environment and I am unable to make any changes with the format in cognos.

Best Answer

You can use iconv to convert between encodings

iconv -f utf-8 -t ascii oldfile > newfile