Inux install Chinese support package and Chinese character set configuration +i18n

Source: Internet
Author: User
Tags i18n

For Some reasons, the system installed without Chinese support, resulting in the subsequent application of Chinese block garbled phenomenon, the solution is very simple, of course, is not re-installed, only the following three steps can be done. 1, install Chinese package: Yum-Y Groupinstall chinese-support installs all packages related to Chinese2, modify character encoding profile # VI/etc/sysconfig/i18n modified content as follows: LANG="ZH_CN. UTF-8"supported="Zh_CN:zh:en_US. utf-8:en_us:en:zh_cn.gb18030"Sysfont="Latarcyrheb-sun16" 3, and finally restart the server: #reboot
Edit/etc/sysconfig/i18n This file, whether you have a Chinese version, or English version. Delete the original settings and put the following copy past Lang="zh_cn.gb18030"supported="ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en"Sysfont="Latarcyrheb-sun16"Save, re-start. Ok this time, the Linux console can be displayed in Chinese, the corresponding file in RHEL5 is/usr/lib/locale/zh_cn.gb18030/etc/sysconfig/i18n Here is the System locale language setting the first line indicates the locale variable setting of your current system, here is ZH_CN. GB18030 the second line indicates that the system presets the language support, the language does not appear in the project the third line defines the console terminal font, the font that is displayed when you log in is this Latarcyrheb-Sun16 i18n is an abbreviated form of internationalization, meaning that between I and N there is -letters, meaning "internationalization" of the software. I18N supports multiple languages, but only in English and one selected language at a time, such as English+ Chinese, English + German, English +Korean, etc; the original: LANG="ZH_CN. UTF-8"supported="ZH_CN. Utf-8:zh_cn:zh"Sysfont="Latarcyrheb-sun16"

Inux install Chinese support package and Chinese character set configuration +i18n

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.