Solaris 11上修改字符编码

●Solaris11
• 变成EUC-JP 
• o # pkg install system/locale/extra
• o # svccfg -s svc:/system/environment:init setprop environment/LC_ALL=ja_JP.eucJP
• o # svccfg -s svc:/system/environment:init setprop environment/LANG=ja_JP.eucJP
• o # svcadm refresh svc:/system/environment:init
• o reboot

• 变成UTF-8
o # svccfg -s svc:/system/environment:init setprop environment/LC_ALL= ja_JP.UTF-8
o # svccfg -s svc:/system/environment:init setprop environment/ LANG = ja_JP.UTF-8
o # svcadm refresh svc:/system/environment:init
o reboot

猜你喜欢

转载自zhangch-fnst.iteye.com/blog/2238713