iconv(1) — Commands
OSF
NAME
iconv − Converts the encoding of characters from one code set to another
SYNOPSIS
iconv -f from_code -t to_code file | -
The iconv command converts the encoding of characters in file from one coded character set to another and writes the results to standard output.
FLAGS
-f from_code
Specifies the input code.
-t to_code
Specifies the output code.
The valid values for the from_code and to_code arguments are as follows:
•pc850 - IBM Personal Computer Code
•88591 - ISO 8859/1 (commonly known as Latin 1)
DESCRIPTION
The input and output coded character sets are identified by from_code and to_code. If the file argument is not specified on the the command line, the iconv command reads the standard input. The result of specifying invalid characters in the input stream is that the input value is translated to the substitute character.
Japanese Language Support
If Japanese Language Support is enabled on your system, this command is not available.
EXAMPLES
To convert the contents of the ibm.file file from codeset pc850 to ISO 8859/1, and store the results in the file.local file, enter:
iconv -f pc850 -t 88591 ibm.file > file.local
RELATED INFORMATION
Commands: ctab(1).
Files: ctab(4).