This chapter describes selected properties you need to use on two localized applications of the Korean Solaris operating environment. This chapter also provides lists of code conversion utilities.
These tools (and the commands to invoke them) include:
mailx (/usr/SUNWale/bin/mailx)
talk (/usr/SUNWale/bin/talk)
The encoding variable in .mailrc does not affect Mailer behavior, but it does set mailx function. To send e-mail in formats other than 7-bit ASCII, such as to send (8-bit) Korean characters you must use /usr/SUNWale/bin/mailx. The encoding variable in .mailrc sets encoding formats for mailx.
International transmission conventions require that header information use only ASCII characters. So Korean characters should not be used in the header (including the Subject line) with Mailer or with mailx.
The /bin/mailx application has not been localized and cannot send or receive Korean characters.
To use Korean characters with talk, the /usr/SUNWale/bin/talk application is required because /bin/talk is not localized.
Korean Solaris software provides this BDF font generator:
xtobdf -- Convert from font in X server to font in BDF
Sdtconvtool is a graphic user interface utility that enables file conversion between various code sets. Its functionality is similar to iconv.
The following steps show how to convert a file encoded in UTF-8 to ko_KR-euc encoding:
Select the code set of the file to be converted.
Click on the arrow button to the right of the "Source Code Set" label to reveal a list of available code sets in the system. Scroll through the list and select the code set of the file to be converted. In this case, select "UTF-8."
Type the path of the file to be converted.
The path to the file can either be entered manually in the "Source File Path" area, or chosen by selecting the "Browse..." button and selecting the file name from the file selection box. In this case, enter or select /tmp/ko_KR.UTF-8.
The "Clear" button to the right of the "Browse..." button can be used to erase the entered source or path.
Select the code set to which the file will be converted.
Select the target file code set information from the pull-down menu to the right of the "Target Code Set:" label. In this case, select "ko_KR-euc."
Type the path to which the converted file will be saved.
The path to the converted file can either be entered manually in the "Target File Path" area. In this case, enter or select /tmp/ko-euc.txt.
The "Clear" button to the right of the "Browse..." button can be used to erase the entered target file path.
Select "Start Conversion".
Pressing the "Start Conversion" button will perform the conversion with the given information.
The "Clear All Fields" button erases the source and target file path names.
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.