Refer here also to the manual "POSIX Commands", command iconv.
The files of the POSIX file system are normally handled by POSIX in EBCDIC format according to EDF03 or EDF04. The POSIX command iconv is available for conversion to ASCII format in accordance with ISO 646 or ISO 8859-1.
The code tables are contained in the directory /usr/lib/iconv.
When resources of the POSIX file system are made available for UNIX or Windows computers, the files should be converted. Conversion is similarly required if files in ASCII format from remote computers are to be mounted in the POSIX file system.
If ASCII files are to be converted automatically, the shell variable IO_CONVERSION mustbe set to YES. Use the following command for this purpose:
|
Example
The content of the file bs2000 is to be converted from ASCII to EBCDIC and the result is to be written to the file bs2000.conv:
$ iconv -f 646 -t edf04 bs2000 > bs2000.conv |