Thursday, March 26, 2009

Convert a file to UTF8

On linux, if you want to change the encoding of a file from ISO-8559-1 to UTF8 use

iconv -f ISO-8859-1 -t UTF8 file_name > new_file_name

To get a list of supported encodings use

iconv -l

No comments: