iconv — change text encoding of a file

I just saw this on the DK-TUG mail list. I seam to be the tool I’ve been wanting for years but been to slack to find. “Slack” since i couldn’t imagine that such tool should not exist. It’s ‘iconv‘ [0] and works like this:

% iconv -f UTF-8 -t ISO-8859-1 old-utf8-file.txt > new-iso88591-file.txt

[0] http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html

  1. Yeah, iconv ftw! :) It has saved my behind on a number of occasions regarding translations.

  1. There are no trackbacks for this post yet.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>