Manual pages › General commands (1)
iconv(1)
code set conversion utility
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
Also by this name: iconv(5), Character sets, environment, package files
NAME
iconv - code set conversion utility
SYNOPSIS
iconv -f fromcode -t tocode [file]
DESCRIPTION
iconv converts the characters or sequences of characters in file from one code set to another and writes the results to standard output. Should no conversion exist for a particular character then it is converted to the underscore '_' in the target codeset.
The required arguments fromcode and tocode identify the input and output code sets, respectively. If no file argument is specified on the command line, iconv reads the standard input.
iconv will always convert to or from the ISO 8859-1 Latin alphabet No.1, from or to an ISO 646 ASCII variant codeset for a particular language. The ISO 8859-1 codeset will support the majority of 8 bit codesets. The conversions attempted by iconv accommodate the most commonly used languages.
The following table lists the supported conversions.
____________________________________________________________
_______________Code_Set_Conversions_Supported_______________
Code Symbol Target Code Symbol comment
____________________________________________________________
_ISO_646______646______ISO_8859-1____8859_____US_Ascii______
ISO 646de 646de ISO 8859-1 8859 German
____________________________________________________________
_ISO_646da____646da____ISO_8859-1____8859_____Danish________
ISO 646en 646en ISO 8859-1 8859 English Ascii
____________________________________________________________
_ISO_646es____646es____ISO_8859-1____8859_____Spanish_______
ISO 646fr 646fr ISO 8859-1 8859 French
____________________________________________________________
_ISO_646it____646it____ISO_8859-1____8859_____Italian_______
ISO 646sv 646sv ISO 8859-1 8859 Swedish
____________________________________________________________
_ISO_8859-1___8859_____ISO_646_______646______7_bit_Ascii___
ISO 8859-1 8859 ISO 646de 646de German
____________________________________________________________
_ISO_8859-1___8859_____ISO_646da_____646da____Danish________
ISO 8859-1 8859 ISO 646en 646en English Ascii
____________________________________________________________
_ISO_8859-1___8859_____ISO_646es_____646es____Spanish_______
ISO 8859-1 8859 ISO 646fr 646fr French
____________________________________________________________
_ISO_8859-1___8859_____ISO_646it_____646it____Italian_______
ISO 8859-1 8859 ISO 646sv 646sv Swedish
____________________________________________________________
| | | | | |
|The conversions are performed according to the tables found
|on the iconv(5) manual page. | | |
| | | | | |
| | | | | |
EXAMPLES | | | | |
|The following converts the contents of file|mail1 from code
|set 8859 to|646fr and stores the results in|file mail.local.
| | | | | |
| iconv -f 8859 -t 646fr mail1 > mail.local |
| | | | | |
FILES | | | | |
|/usr/lib/iconv/iconv|data | lists the conversions supported.
|/usr/lib/iconv/*.t | | conversion tables.
| | | | | |
SEE ALSO | | | | |
|iconv(5) in|the System Administrator's Reference Manual. |
| | | | | |
DIAGNOSTICS | | | | |
|iconv returns 0 upon|successful completion,|1 otherwise. |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | |