This chapter describes selected properties you need to use with two localized applications of the Simplified Chinese 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) Simplified Chinese 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 Simplified Chinese 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 Simplified Chinese characters.
To use Simplified Chinese characters with talk, the /usr/SUNWale/bin/talk application is required because /bin/talk is not localized.
Simplified Chinese Solaris software provides this BDF font generator:
xtobdf -- Convert from font in X server to font in BDF
Stdconvtool is a graphic user interface utility that enables file conversion between various code sets. Its functionality is the same as iconv.
Please select both source Code set and target code set from pull-down list respectievely and type souce file into Source File Path field.
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. Simplified 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 Simplified Chinese Solaris software.
Table 6-1 Simplified Chinese iconv Code Conversion Modules (zh locale)
Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
GB2312-80 |
zh_CN.euc |
ISO 2022-7 |
zh_CN.iso2022-7 |
ISO 2022-7 |
zh_CN.iso2022-7 |
GB2312-80 |
zh_CN.euc |
GB2312-80 |
zh_CN.euc |
ISO 2022-CN |
zh_CN.iso2022-CN |
ISO-2022-CN |
zh_CN.iso2022-CN |
GB2312-80 |
zh_CN.euc |
UTF-8 |
UTF-8 |
GB2312-80 |
zh_CN.euc |
GB2312-80 |
zh_CN.euc |
UTF-8 |
UTF-8 |
GB2312-80 |
zh_CN.euc |
BIG5 |
zh_TW-big5 |
BIG5 |
zh_TW.big5 |
GB2312-80 |
zh_CN.euc |
HZ-GB-2312 |
HZ-GB-2312 |
GB2312-80 |
zh_CN.euc |
GB2312-80 |
zh_CN.euc |
HZ-GB-2312 |
zh_CN.euc |
Table 6-2 Simplified Chinese iconv Code Conversion Modules (zh.GBK locale)
Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
UTF-8 |
UTF-8 |
GBK |
zh_CN.gbk |
GBK |
zh_CN.gbk |
UTF-8 |
UTF-8 |
GBK |
zh_CN.gbk |
BIG5P |
zh_TW-big5p |
GBK |
zh_CN.gbk |
BIG5HK |
zh_TW-big5hk |
GBK |
zh_CN.gbk |
ISO-2022-CN |
zh_CN.iso2022-CN |
ISO-2022-CN |
zh_CN.iso2022-CN |
GBK |
zh_CN.gbk |
GBK |
zh_CN.gbk |
BIG5 |
zh_TW-big5 |
BIG5 |
zh_TW-big5 |
GBK |
zh_CN.gbk |
BIG5P |
zh_TW-big5p |
GBK |
zh_CN.gbk |
BIG5HK |
zh_TW-big5hk |
GBK |
zh_CN.gbk |
HZ-GB-2312 |
HZ-GB-2312 |
GBK |
zh_CN.gbk |
GBK |
zh_CN.gbk |
HZ-GB-2312 |
zh_CN.gbk |
HZ-GB-2312 |
HZ-GB-2312 |
UTF-8 |
UTF-8 |
UTF-8 |
UTF-8 |
HZ-GB-2312 |
HZ-GB-2312 |
Table 6-3 Simplified Chinese iconv Code Conversion Modules (zh_CN.GB18030 locale)
Code |
Symbol |
Target Code |
Symbol |
---|---|---|---|
UTF-8 |
UTF-8 |
GB18030-2000 |
zh_CN.gb18030 |
GB18030-2000 |
zh_CN.gb18030 |
UTF-8 |
UTF-8 |
GB18030-2000 |
zh_CN.gb18030 |
BIG5HK |
zh_HK-big5hk |
GB18030-2000 |
zh_CN.gb18030 |
BIG5P |
zh_TW-big5p |
BIG5HK |
zh_HK-big5hk |
GB18030-2000 |
zh_CN.gb18030 |
BIG5P |
zh_TW-big5p |
GB18030-2000 |
zh_CN.gb18030 |
The following iconv code conversion modules are located in /usr/lib/iconv :
For the zh locale:
zh_CN.euc%zh_TW-big5.so
zh_TW-big5%zh_CN.euc.so
For the zh.GBK locale:
UTF-8%zh_CN.gbk.so
zh_CN.gbk%UTF-8.so
zh.CN.gbk%zh_CN.iso2022-CN.so
zh_CN.iso2022-CN%zh_CN.gbk.so
zh_CN.gbk%zh_TW-big5.so
zh_TW-big5%zh_CN.gbk.so
In the following example, an EUC mail file is converted to ISO 2022-CN:
system% iconv -f zh_CN.euc -t zh_CN.iso2022-CN mail.euc > mail.iso2022-CN |
For further information, see the iconv(3) and iconv_zh(5) man pages. These utilities can be used for converting files for printing. See Simplified Chinese Solaris System Administrator's Guide for more information.