Chinese garbled file linux vim, cat normal

.vimrc

Under the current user's home directory .vimrcto add file

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8

.bashrc

Under the current user's home directory .bashrcto add or modify files

export LC_ALL="zh_CN.UTF-8"

Guess you like

Origin blog.csdn.net/qq_35958788/article/details/93086055