Fcitx provides a description of multiple languages and different codes. It can also be used to solve the problem that fcitx cannot be entered.

Source: Internet
Author: User

In general, if your x Desktop Environment, most locale Lang settings are as follows:

Zh_cn.gb2312
Zh_cn.gbk
Zh_cn.18030
Zh_CN.UTF-8
En_us

No matter which country the Lang in locale is, according to my test, it seems that lc_ctype in locale is set to zh_cn, so that little penguins can input the methods in different languages and different codes Run best.

Therefore, in the. bashrc or. profile directory of the current user, there should be two rows as follows:

Export lc_ctype = "zh_cn"
Export xmodifiers = "@ im = fcitx"

In this case, you can use fcitx regardless of the language of your desktop Lang.

For example, I set lang = en_us, that is, the desktop is in English .. Add the following in bahsrc:

Export lang = en_us
Export lc_ctype = "zh_cn"
Export xmodifiers = "@ im = fcitx"

If you like UTF-8, add it to. bashrc.
Export lang = zh_CN.UTF-8
Export lc_ctype = "zh_cn"
Export xmodifiers = "@ im = fcitx"

If some brothers say that the gb18030 code is better, you can also add the following section in. bashrc. Almost all of them.

Export lang = zh_cn.gb18030
Export lc_ctype = "zh_cn"
Export xmodifiers = "@ im = fcitx"

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.