Ubuntu terminal can not solve the Chinese input

Open the / etc / environment

Add the following two lines in the following

LANG = "zh_CN.UTF-8"

LANGUAGE = "zh_CN: zh: en_US: A"

 

Open /var/lib/locales/supported.d/local

Add zh_CN.GB2312 character set, as follows:

en_US.UTF-8, UTF-8

zh_CN.UTF-8 UTF-8

zh_CN.GBK GBK

zh_CN GB2312

Once saved, execute the command:

sudo locale-gen

 

Open the / etc / default / locale

change into:

LANG = "zh_CN.UTF-8"

LANGUAGE = "zh_CN: zh: en_US: A"

Guess you like

Origin www.cnblogs.com/didiaoxiaoguai/p/11421023.html