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"