Using the iconv command

Any converter installed in the system can be used through the iconv command, which uses the iconv library.

The iconv command acts as a filter for converting from one code set to another. For example, the following command filters data from PC Code (IBM-850) to ISO8859-1:

cat File | iconv -f IBM-850 -t ISO8859-1 | tftp -p - host /tmp/fo

The iconv command converts the encoding of characters read from either standard input or the specified file and then writes the results to standard output.

Note: On the AIX® operating system, the ISO10646-1 label refers to UCS-2 encoding. This label can be used as an alias for UCS-2.