Macos – Converting the encoding of a text file (Mac OS X)

character encodingconversionmacos

Possible Duplicate:
How can I convert multiple files to UTF-8 encoding using *nix command line tools?

Okay, now that I can detect the encoding, I know that my encoding is using charset=iso-8859-1 instead of utf. How can I convert this?

Best Answer

iconv -f iso-8859-1 -t utf-8 < file > file.new