http://878045653.blog.51cto.com/2693110/735654
解决方法:
改成全英文环境来解决 方格 乱码 :
用vim配置语言环境变量
vim / etc/environment
改成:
LANG =”en_US.UTF-8 ″
LANGUAGE =”en_US:en”
sudo vim /var/lib/locales/supported.d/local
改成:
en_US.UTF-8 UTF-8
保存后,执行命令:
sudo locale-gen
sudo vim /etc/default/locale
修改为:
LANG =”en_US.UTF-8 ″
LANGUAGE =”en_US:en”
重启Ubuntu Server
sudo reboot