Solve the Ubuntu system Chinese garbled display problem, terminal open files and view directory

Source: Internet
Author: User

Solve the problem of Chinese garbled display in Ubuntu system
[Date: 2014-02-20] Source: Linux Community Njchenyi [Font: Big Small]

I installed Ubuntu 12.04 Server First and then installed the desktop. I found a problem in Chinese after entering.

Workaround:
One. Ubuntu default Chinese character encoding
Ubuntu default Chinese characters are encoded as ZH_CN. UTF-8, this can be
See in/etc/environment:
sudo gedit/etc/environment
You can see something like this:
Path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Lang= "ZH_CN. UTF-8 "
Language= the second line of "Zh_CN:zh:en_US:en" is the default Chinese character encoding. Note: You can modify the default Chinese encoding characters here, such as: ZH_CN. GBK.

Two. How to add Chinese character encoding
1. Direct use of Locale-gen
In the terminal input command:
sudo locale-gen zh_cn. GB18030
To complete the addition of the Chinese character set. When you are finished, you can go to
/usr/lib/locale/, there is already a zh_cn.gb18030 folder in the HyperTerminal command:
Gedit/var/lib/locales/supported.d/local, you can find more than one line in the file: ZH_CN. GB18030 GB18030. Description added successfully.

2. By modifying the/var/lib/locales/supported.d/local file
In Terminal input command line
sudo gedit/var/lib/locales/supported.d/local
You can see something like this:
Zh_cn. UTF-8 UTF-8
en_US. UTF-8 UTF-8
Add Chinese character set at end of file
ZH_CN GB2312
Exit after saving. In the terminal input command:
sudo dpkg-reconfigure locales
Finally, restart Ubuntu.

After reboot in the system settings-language settings need to check Chinese, will automatically download the Chinese package, after the installation is complete again restart on OK.

For more information about Ubuntu see the Ubuntu feature page http://www.linuxidc.com/topicnews.aspx?tid=2

Http://www.linuxidc.com/Linux/2014-02/96939.htm #########################ubuntu under input sudo gedit/etc/default/grub prompt command not2014-12-11 21:41 Anonymous | Browse 695 times from: Mobile know Operating System Linux
Ubuntu under input sudo gedit/etc/default/grub prompt command not found, solve
Share to:2014-12-11 21:44 The questioner adopted
sudo gedit/etc/default/grub

There will be a space behind the gedit. It should be the following.
sudo gedit/etc/default/grub
Questioner evaluation
Too much to force, your answer perfectly solved my problem, thank you very much!
Comments ( 1) | 5 open File and directory http://jingyan.baidu.com/article/e8cdb32b5f9f9237042bad53.html

Solve the Ubuntu system Chinese garbled display problem, terminal open files and view directory

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.