Autres langues

Langue: en

Version: March 2001 (MeeGo - 06/11/10)

Autres sections - même nom

Section: 1 (Commandes utilisateur)


iconv - Convert encoding of given files from one encoding to another


iconv -f encoding -t encoding inputfile


The iconv program converts the encoding of characters in inputfile from one coded character set to another. The result is written to standard output unless otherwise specified by the --output option.

Input/Output format specification:

--from-code, -f encoding
Convert characters from encoding
--to-code, -t encoding
Convert characters to encoding


List known coded character sets

Output control:

omit invalid characters from output
--output, -o file
Specify output file (instead of stdout)
--silent, -s
suppress warnings
Print progress information.
-?, --help
Give this help list
Give a short usage message
-V, --version
Print program version


Following examples convert from code set ISO88592 "input.txt" to UTF8 code set or ASCII and stores the result as "output.txt". iconv -f ISO88592 -t UTF8 < input.txt > output.txt

iconv -f ISO88592 -t ASCII//TRANSLIT < input.txt > output.txt


iconv is written by Ulrich Drepper as part of the GNU C Library.

This man page is written by Joel Klecker <espy@debian.org>, for the Debian GNU/Linux system.