iconv(1)
NAME
iconv − code set conversion
SYNOPSIS
iconv −f fromcode −t tocode [file ...]
DESCRIPTION
iconv converts the encoding of characters in the input files from the fromcode code set to the tocode code set, and writes the results on standard output. If no input files are given, iconv reads from standard input. If − appears as an input file name, iconv reads standard input at that point. −− can be used to delimit the end of options (see getopt(3C)).
Options
The following options are recognized:
−f fromcode Identify the code set corresponding to option argument fromcode as the code set that the input will be converted “from”.
−t tocode Identify the code set corresponding to option argument tocode as the code set that the input will be converted “to”.
The fromcode and tocode names can be any length, but only the first four and the last letter are used to identify the code set. The names can contain any letter except a closing curly brace (}). HP-supplied fromcode and tocode names and their corresponding code sets include:
Names Code Set
iso8859_1 ISO 8859/1
arabic8 HP ARABIC8
greek8 HP GREEK8
hebrew8 HP HEBREW8
kana8 HP KATAKANA8
roman8 HP ROMAN8
turkish8 HP TURKISH8
japanese15 HP JAPANESE15
korean15 HP KOREAN15
roc15 HP Traditional CHINESE15
american_e American EBCDIC
arabic_e Arabic EBCDIC
c-french_e Canadian-French EBCDIC
cht_e Traditional Chinese EBCDIC
danish_e Danish EBCDIC
dutch_e Dutch EBCDIC
english_e English EBCDIC
finnish_e Finnish EBCDIC
french_e French EBCDIC
german_e German EBCDIC
greek_e Greek EBCDIC
hebrew_e Hebrew EBCDIC
icelandic_e Icelandic EBCDIC
italian_e Italian EBCDIC
japanese_e Japanese EBCDIC
katakana_e Katakana EBCDIC
korean_e Korean EBCDIC
norwegian_e Norwegian EBCDIC
portuguese_e Portuguese EBCDIC
spanish_e Spanish EBCDIC
swedish_e Swedish EBCDIC
turkish_e Turkish EBCDIC
jis Japanese Industrial Standard
sjis Shifted-Japanese Industrial Standard
ujis Japanese Extended UNIX Code
EXTERNAL INFLUENCES
Environment Variables
The LANG environment variable determines the language in which messages are displayed.
International Code Set Support
Single and multi-byte character code sets are supported.
WARNINGS
If an input character does not have a valid equivalent in the code set selected by the −t option (the "to" code set), it is mapped to as system-defined default character.
If an input character does not belong to the code set selected by the −f option (the "from" code set), the command terminates.
EXAMPLES
Convert the contents of file foo from code set Roman8 to ISO 8859/1 and store the results in file bar.
iconv -f roman8 -t iso8859_1 foo > bar
AUTHOR
iconv was developed by HP.
SEE ALSO
STANDARDS CONFORMANCE
iconv: XPG3
Hewlett-Packard Company — HP-UX Release 8.05: June 1991