The iconv command converts the characters or sequences of characters in a file from one code set to another and writes the results to standard output. Traditional Chinese Solaris software includes special filters for the iconv command.
If no conversion exists for a particular character, it is converted to the underscore "_" in the target codeset. The following options are supported:
-f from code
Symbol of the input code set.
-t to code
Symbol of the output code set.
The following code set conversion modules are supported in Traditional Chinese Solaris software.
Table 5-1
Source Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
CNS 11643 |
zh_TW-euc |
Big-5 |
zh_TW-big5 |
CNS 11643 |
zh_TW-euc |
ISO 2022-7 |
zh_TW-iso2022-7 |
Big-5 |
zh_TW-big5 |
CNS 11643 |
zh_TW-euc |
Big-5 |
zh_TW-big5 |
ISO 2022-7 |
zh_TW-iso2022-7 |
ISO 2022-7 |
zh_TW-iso2022-7 |
CNS 11643 |
zh_TW-euc |
ISO 2022-7 |
zh_TW-iso2022-7 |
Big-5 |
zh_TW-big5 |
CNS 11643 |
zh_TW-euc |
ISO 2022-CN-EXT |
zh_TW-iso2022-CN-EXT |
ISO 2022-CN-EXT |
zh_TW-iso2022-CN-EXT |
CNS 11643 |
zh_TW-euc |
Big-5 |
zh_TW-big5 |
ISO 2022-CN |
zh_TW-iso2022-CN |
ISO 2022-CN |
zh_TW-iso2022-CN |
Big-5 |
zh_TW-big5 |
UTF-8 |
UTF-8 |
CNS 11643 |
zh_TW-euc |
CNS 11643 |
CNS 11643 |
UTF-8 |
UTF-8 |
UTF-8 |
UTF-8 |
Big-5 |
zh_TW-big5 |
Big-5 |
zh_TW-big5 |
UTF-8 |
UTF-8 |
UTF-8 |
UTF-8 |
ISO 2022-7 |
zh_TW-iso2022-7 |
ISO 2022-7 |
zh_TW-iso2022-7 |
UTF-8 |
UTF-8 |
IBM Cp937 |
zh_TW-cp937 |
UTF-8 |
UTF-8 |
UTF-8 |
UTF-8 |
IBM Cp937 |
zh_TW-cp937 |
Big-5+ |
zh_TW-big5p |
UTF-8 |
UTF-8 |
UTF-8 |
UTF-8 |
Big-5+ |
zh_TW-big5p |
UTF-8 |
UTF-8 |
BIG5HK |
zh_HK-big5hk |
BIG5HK |
zh_HK-big5hk |
UTF-8 |
UTF-8 |
In the following example, an EUC mail file is converted to Big5:
system% iconv -f zh_TW-euc -t zh_TW-big5 mail.euc > mail.big5 |
For further information, see the iconv(3) and iconv_TW(5) man pages. These utilities can be used for converting files for printing. See Traditional Chinese Solaris System Administrator's Guide for more information.