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:

LANG="zh_CN.GB18030"

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.