Ubuntu 12.04 Server Chinese under Configuration UTF-8 Chinese/English environment

Source: Internet
Author: User
Tags locale


#安装中文语言包

Apt-get Install Language-pack-zh-hans


Locale-gen


Cd/etc/default

CP Locale Locale.bak


#中文

Cat <<eof >locale

Lang= "ZH_CN. UTF-8 "

Language= "Zh_cn:en"

Lc_ctype= "ZH_CN. UTF-8 "

Eof


#重启Ubuntu Server

Reboot


#-----


#英文

Cat <<eof >locale

Lang= "en_US. UTF-8 "

Language= "en_US"

Lc_ctype=c

Eof


#其它

Lang=zh_cn. UTF-8

Language=zh_cn:en

Lc_ctype= "ZH_CN. UTF-8 "

Lc_numeric= "ZH_CN. UTF-8 "

Lc_time= "ZH_CN. UTF-8 "

Lc_collate= "ZH_CN. UTF-8 "

Lc_monetary= "ZH_CN. UTF-8 "

Lc_messages= "ZH_CN. UTF-8 "

Lc_paper= "ZH_CN. UTF-8 "

Lc_name= "ZH_CN. UTF-8 "

Lc_address= "ZH_CN. UTF-8 "

Lc_telephone= "ZH_CN. UTF-8 "

Lc_measurement= "ZH_CN. UTF-8 "

Lc_identification= "ZH_CN. UTF-8 "

Lc_all=zh_cn. UTF-8


Ubuntu 12.04 Server Chinese under Configuration UTF-8 Chinese/English environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.