Ubuntu Server下配置UTF-8中文环境
八月 18th, 2010 Posted in Ubuntu | 阅读次数: 222 次
Author:gaojinbo
Time:2010-8-18
Ubuntu Server下配置UTF-8中文环境,ubuntu server zh_CN.UTF-8
1、安装中文语言包
apt-get install language-pack-zh
2、添加locale编码
vi /var/lib/locales/supported.d/local
内容是:
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN GB2312
保存后 ,执行命令:
sudo locale-gen
4.修改缺省的编码为zh_CN
vi /etc/default/locale
LANG="zh_CN.UTF-8"
5.重启Ubuntu Server
reboot
6.可以用locale查看一下环境变量…
locale
完成!
随机日志
Tags: locale
五月 2nd, 2011 at 04:20
Some Recommended Sites I Came Across…
[...]below you’ll find my links page http://www.pregnancymiraclez.net/my-favourite-sites/ with some great sites that I think you should definitely go visit[...]…
五月 3rd, 2011 at 05:02
Some Other Websites I Like…
[...]http://www.panicattackstreatmentcure.net/links/ Below are some totally unrelated websites to mine, however, they are really worth checking out[...]…
五月 26th, 2011 at 00:05
Interesting Article…
[...]some interesting sites worth visitng. We recommend all our readers go and check these out[...]……
二月 9th, 2012 at 17:06
[...]The information mentioned in the article are some of the best available [...]……
[...]below you’ll find the link to some sites that we think you should visit[...]……