Linux garbled problem Solving

Source: Internet
Author: User
Tags locale

Language Settings Common commands

# echo $LANG

# locale

# LANG=ZH_CN. UTF-8

# lang=en

?

CENTOS6 settings for Chinese language packs

The installation of CentOS selected Chinese, but the terminal can not display Chinese garbled;

# vim/etc/sysconfig/i18n

Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"

?

Centos7 settings for Chinese language packs

1) View current configuration

# cat/etc/locale.conf

Lang=en_us. UTF-8

2) Modify the Language pack configuration

# Cp/etc/locale.conf/etc/locale.conf_bak

# vim/etc/locale.conf

Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"

Note : After the modification is completed, re-login, still garbled, can be remote connection Terminal Xshell settings encoded as the default language or UTF-8, problem solving!

Linux garbled problem Solving

Related Article

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.