原系统为Ubuntu 8.04版本,最新版本10.04已检验 ..
感谢各种技术分享!一. Ubuntu默认的中文字符编码
在/etc/environment中看到:
pprun@pprun-t61:~$sudo gedit /etc/environment
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"二. 添加中文字符编码的方法
1. 直接使用locale-gen命令:
pprun@pprun-t61:~$ sudo locale-gen zh_CN.GB18030
pprun@pprun-t61:~$ cd /usr/lib/locale/
可以看到生成了一个zh_CN.gb18030文件夹
pprun@pprun-t61:~$ gedit /var/lib/locales/supported.d/local
文件中多了一行:zh_CN.GB18030 GB180302. 通过修改/var/lib/locales/supported.d/local文件
pprun@pprun-t61:~$ sudo gedit /var/lib/locales/supported.d/local
zh_CN.UTF-8 UTF-8
en_US.UTF-8 UTF-8增加一行:
zh_CN.GBK GBK
后保存后退出。pprun@pprun-t61:~$ sudo dpkg-reconfigure localesGenerating locales...
...
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZW.UTF-8... done
zh_CN.GBK... done
zh_CN.UTF-8... up-to-date
...
Generation complete.即可生成相应文件:/usr/lib/locale/zh_CN.gbk/Ubuntu 10.04修复Grub2笔记让你的Ubuntu开口说话吧相关资讯 Ubuntu知识 Ubuntu 10.04
- Ubuntu 有这功能吗?-回答4个新用 (10/14/2014 16:54:49)
- 经典Linux操作系统:Ubuntu 10.04 (10/07/2014 10:00:12)
- Ubuntu 10.04编译LTP (03/21/2013 21:05:34)
| - Ubuntu系统诞生10周年:让Linux更 (10/14/2014 16:53:00)
- Ubuntu小知识总结 (07/08/2013 17:02:10)
- Ubuntu 官方发布 Ubuntu 应用程序 (02/15/2013 21:49:58)
|
本文评论 查看全部评论 (0)