Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getopt(3C)

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

iconv recognizes the following options:

-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

american_e American EBCDIC

arabic8 HP ARABIC8

arabic_e Arabic EBCDIC

big5 Traditional Chinese BIG5

bulgarian_e Bulgarian EBCDIC

c-french_e Canadian-French EBCDIC

chinese-t_e Traditional Chinese EBCDIC

czech_e Czech 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

greek8 HP GREEK8

greek_e Greek EBCDIC

hebrew8 HP HEBREW8

hebrew_e Hebrew EBCDIC

hungarian_e Hungarian EBCDIC

icelandic_e Icelandic EBCDIC

iso8859_1 ISO 8859/1

iso8859_2 ISO 8859/2

iso8859_5 ISO 8859/5

iso8859_6 ISO 8859/6

iso8859_7 ISO 8859/7

iso8859_8 ISO 8859/8

iso8859_9 ISO 8859/9

italian_e Italian EBCDIC

japanese_e Japanese EBCDIC

japanese15 HP JAPANESE15

jis Japanese Industrial Standard

sjis Shifted-Japanese Industrial Standard

ujis Japanese Extended UNIX Code

kana8 HP KATAKANA8

katakana_e Katakana EBCDIC

korean15 HP KOREAN15

korean_e Korean EBCDIC

norwegian_e Norwegian EBCDIC

polish_e Polish EBCDIC

portuguese_e Portuguese EBCDIC

roc15 HP Traditional CHINESE15

roman8 HP ROMAN8

rumanian_e Rumanian EBCDIC

russian_e Russian EBCDIC

serbocroation_e Serbocroation EBCDIC

slovene_e Slovene EBCDIC

spanish_e Spanish EBCDIC

swedish_e Swedish EBCDIC

thai8 HP THAI8

thai_e Thai EBCDIC

turkish8 HP TURKISH8

turkish_e Turkish EBCDIC

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

getopt(3C)

STANDARDS CONFORMANCE

iconv: XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026