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

character encodingconversionmacos

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?

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