The input command in the CentOS environment cannot be Chinese so how do I insert Chinese data into a database
Such as:
First check to see if the Chinese Language Support component is installed
No, install it.
yum install Chinese Support |
View environment variables again
This is in English.
This is Chinese.
If it is in English change the configuration file
At the end of the add
LANG=zh_CN.UTF-8 export LANG |
Save exit in Terminal input
Source Profile
Ps:
1) You said the command line mode cannot input Chinese is not 3 RunLevel, Xwindows graphical interface is 5 runlevel.
In the 3 RunLevel, which is the system standard run level, only Chinese is displayed, and the Chinese is not supported.
At 5 RunLevel, because the graphical interface is installed in this environment, Chinese input is supported in this environment.
2) can install SSH remote connection software, such as Xshell, this can be entered in Chinese
The input command in the CentOS environment cannot be Chinese so how do I insert Chinese data into a database