ubuntu修改系统默认编码的方法是: 1. 参考 /usr/share/i18n/SUPPORTED 编辑/var/lib/locales/supported.d/* gedit /var/lib/locales/supported.d/localgedit /var/lib/locales/supported.d/zh-hans 如:more /var/lib/locales/supported.d/localzh_CN GB18030zh_CN.GBK GBKzh_CN.UTF-8 UTF-8zh_CN.GB2312 GB2312en_US.UTF-8 UTF-8 2.生成locale(自动保存在/usr/lib/locale/中) locale-gen 3.修改localevi /etc/default/locale 改为:LANG="zh_CN.GB18030"LANGUAGE="zh_CN:zh:en_US:en" 4.重新启动或切换下运行级别,查看locale locale
时间: 2024-10-13 01:27:37