这个问题渐渐清晰了,刚接触的时候着实被折腾了,现在记录一下吧,备忘了。
概括来讲需要了解三个地方:系统支持的编码、用户环境变量LANG、SecureCRT字符集解码选项
1、首先检查Solaris支持那些中文编码
bash-3.00$ cd /usr/dt/app-defaults/
bash-3.00$ ll
total 24
drwxr-xr-x 9 root bin 512 Aug 6 2009 .
drwxr-xr-x 10 root bin 512 Aug 6 2009 ..
drwxr-xr-x 2 root bin 1024 Aug 6 2009 C
drwxr-xr-x 2 root bin 512 Aug 6 2009 en_CA.UTF-8
drwxr-xr-x 2 root bin 1024 Aug 6 2009 en_US.UTF-8
drwxr-xr-x 2 root bin 1024 Aug 6 2009 zh
drwxr-xr-x 2 root bin 1024 Aug 6 2009 zh.GBK
drwxr-xr-x 2 root bin 1024 Aug 6 2009 zh.UTF-8
lrwxrwxrwx 1 root root 4 Aug 6 2009 zh_CN.EUC -> ./zh
drwxr-xr-x 2 root bin 1024 Aug 6 2009 zh_CN.GB18030
lrwxrwxrwx 1 root root 8 Aug 6 2009 zh_CN.GBK -> ./zh.GBK
lrwxrwxrwx 1 root root