The ICONV utility converts the characters from the input file from one coded character set (code set) definition to another coded character set definition , and writes the characters to the output file (or stdout if no file is specified).
The ICONV utility uses the iconv_open, iconv, and iconv_close functions to convert the input file records from the coded character set definition for the input code page to the coded character set definition for the output code page. There is one record in the output file for each record in the input file. No padding or truncation of records is performed.
When conversions are performed between single-byte code pages, the output records are the same length as the input records. When conversions are performed between double-byte code pages, the output records may be longer or shorter than the input records because the shift-out and shift-in characters may be added or removed.
![]()
ICONV Syntax
ICONV Return Codes
ICONV Messages