Windows下用ssh客户端连接Ubuntu乱码

进入系统后

$sudo vim /etc/environment
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
修改为
LANG="en_GB.UTF-8"
LANGUAGE="en_US:en"
 
$sudo vim /etc/default/locale
修改同上
 
reboot
 
如果使用的是 PuTTY,可以通过修改 font, character set 设置来解决。
Window -> Appearance -> Font settings 选择宋体或新宋体:
Window -> Translation -> Character set translation on received data 选择 UTF-8:
 

你可能感兴趣的:(ssh,ubuntu,职场,乱码,client,休闲)