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. Korean 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 Korean Solaris software:
Table 5-1 Korean iconv Code Conversion Modules (ko locale)
Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
Wansung |
ko_KR-euc |
Johap |
ko_KR-johap92 |
Wansung |
ko_KR-euc |
Packed |
ko_KR-johap |
Wansung |
ko_KR-euc |
N-Byte |
ko_KR-nbyte |
Wansung |
ko_KR-euc |
ISO-2022-KR |
ko_KR-iso2022-7 |
Johap |
ko_KR-johap92 |
Wansung |
ko_KR-euc |
Packed |
ko_KR-johap |
Wansung |
ko_KR-euc |
N-Byte |
ko_KR-nbyte |
Wansung |
ko_KR-euc |
ISO-2022-KR |
ko_KR-iso2022-7 |
Wansung |
ko_KR-euc |
The following modules perform character-based code conversion on the KS C 5700 character set. They convert KSC 5700 characters between Korean UTF-8, Completion code (Wansung), and Combination code (Johap).
Table 5-2 Common Korean iconv Code Conversion Modules (ko and ko.UTF-8 locales)
Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
UTF-8 |
ko_KR-UTF-8 |
Wansung |
ko_KR-euc |
UTF-8 |
ko_KR-UTF-8 |
Johap |
ko_KR-johap92 |
UTF-8 |
ko_KR-UTF-8 |
Packed |
ko_KR-johap |
UTF-8 |
ko_KR-UTF-8 |
ISO-2022-KR |
ko_KR-iso2022-7 |
Wansung |
ko_KR-euc |
UTF-8 |
ko_KR-UTF-8 |
Johap |
ko_KR-johap92 |
UTF-8 |
ko_KR-UTF-8 |
Packed |
ko_KR-johap |
UTF-8 |
ko_KR-UTF-8 |
ISO-2022-KR |
ko_KR-iso2022-7 UTF-8 |
UTF-8 |
ko_KR-UTF-8 |
UTF-8 |
ko_KR.UTF-8 |
Unified Hangul |
ko_KR-cp949 |
Unified Hangul |
ko_KR-cp949 |
UTF-8 |
ko_KR-UTF-8 |
In the following example, a KS C 5601 file (Korean EUC) is converted to KS C 5700 (ko.UTF-8):
system% iconv -f ko_KR-euc -t ko_KR-UTF-8 ko_euc_file > ko_UTF-8_file |
For further information, see the iconv(3), iconv_ko.UTF-8(5), and iconv_utf(5) man pages. These utilities can be used for converting files for printing. See Korean Solaris System Administrator's Guide for more information.