Home  >  Article  >  Operation and Maintenance  >  What should I do if I can’t input Chinese in Linux?

What should I do if I can’t input Chinese in Linux?

藏色散人
藏色散人Original
2021-12-14 11:33:5219381browse

Solution to the problem that Linux cannot input Chinese: 1. Enter the terminal; 2. Modify "ANGUAGE=zh_CN.GB2312:zh_CN:zhLANG=zh_CN"; 3. Save and exit.

What should I do if I can’t input Chinese in Linux?

The operating environment of this article: linux5.9.8 system, Dell G3 computer.

linux What should I do if I can’t input Chinese?

After searching for a day, I finally found the solution. The solution is as follows:

1. Enter the terminal

2. gedit /etc/sysconfig /i18n

Is there only one line? I just have one line: LANGE=... (can’t remember what I wrote)

3. Delete the original text and replace it with the following text

LANGUAGE=zh_CN.GB2312:zh_CN:zh
LANG=zh_CN#默认中文

XIM=Scim#Input method Related

XIM_PROGRAM=scim#输入法相关
XMODIFIERS="@im=SCIM"#输入法相关

Save and exit.

4. Log out in order to restart the input method. There may be a simpler way, such as a command to reload the input method.

5. There are many input methods, including Wubi and Intelligent Pinyin. The font is also in Traditional Chinese. Next, you can right-click to set which input methods are displayed and which ones are not displayed. For example, you can not display the Traditional Chinese input method.

Okay, this is how my system solved it. If your problem cannot be solved, it may be because the input method is not installed or for other reasons.

Recommended learning: "linux video tutorial"

The above is the detailed content of What should I do if I can’t input Chinese in Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn