Why is the language encoding in X different to what it is within the TTY console?

Updated -

For example, if the system language encoding is set to zh_CN.GB18030 by entering the following into /etc/sysconfig/i18n:


After logging into X, the language may be set to zh_CN.UTF-8 as shown by the following:

$ export|grep LANG
declare -x GDM_LANG="zh_CN.UTF-8"
declare -x LANG="zh_CN.UTF-8...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content