Autres langues

Langue: en

Version: lenny (debian - 07/07/09)

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, or from the standard input if no filename is specified, from one coded character set to another. The result is written to standard output unless otherwise specified by the --output option.
--from-code, -f encoding
Convert characters from encoding.
--to-code, -t encoding
Convert characters to encoding. If not specified the encoding corresponding to the current locale is used.
--list, -l
List known coded character sets.
Omit invalid characters from output.
--output, -o file
Specify output file (instead of stdout).
--silent, -s
Suppress warnings, but not errors.
Print progress information.
--help, -?
Give help list.
Give a short usage message.
--version, -V
Print program version.


The values permitted for --from-code and --to-code can be listed by the iconv --list command, and all combinations of the listed values are supported. Furthermore the following two suffixes are supported:
When the string "//TRANSLIT" is appended to --to-code, transliteration is activated. This means that when a character cannot be represented in the target character set, it can be approximated through one or several similarly looking characters.
When the string "//IGNORE" is appended to --to-code, characters that cannot be represented in the target character set will be silently discarded.


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

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