SSH terminal displays Chinese garbled characters

  

This relationship occurs, and the first thought is because the character set does not match.
Open the SSH client and connect to the linux virtual machine


Enter #cd /etc
#cd sysconfig/ in the virtual machine

find i18n
cat i18n

The current encoding type will be displayed

make edits

For example, change UTF-8 to GBK


Shut down and restart ssh.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325338725&siteId=291194637