欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Solaris 11上修改字符编码

程序员文章站 2022-05-21 11:33:19
...
●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