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
• 变成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