若cat可正常显示中文而vim不可,是由于vimrc中未配置编码所致。
vim /etc/vim/vimrc
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8
https://www.cnblogs.com/fiberhome/p/7338129.html