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:

4 Responses to “Ubuntu Server下配置UTF-8中文环境”

  1. Pregnancy Miracle Review Says:

    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[...]…


  2. Cure Panic Attacks Says:

    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[...]…


  3. Resources Says:

    Interesting Article…

    [...]some interesting sites worth visitng. We recommend all our readers go and check these out[...]……


  4. garage door repair in Egbertville NY Says:

    [...]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[...]……


留下您的脚印