Iconv : quick character set converter

iconv is a tool dedicated to character sets conversion.

Install iconv :

root@localhost:~# apt-get install iconv

To see all the character sets available with iconv :

fool@localhost:~$ iconv –list

To convert a file encoded in iso-8859-15 into utf-8, here is the complete command to run :

fool@localhost:~$ iconv -f iso-8859-15 -t utf-8 file_to_convert

By default, the result is displayed on the standard output.

You can redirect it :

fool@localhost:~$ iconv -f iso-8859-15 -t utf-8 file_to_convert > file_newly_converted

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s