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

About Steffen

Grown up in the country side i like vinegar, harsh noise, dirty electronics, poetic coding and fire.
This entry was posted in Computers. Bookmark the permalink.

One Response to iconv — change text encoding of a file

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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