設置 shell 中腳本的編碼
這是其中一種方法
無 ~/.vimrc 文件, 執行以下命令, 有該文件去掉第一行
touch /root/.vimrc
echo "set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936" >> /root/.vimrc
source ~/.vimrc
這是其中一種方法
無 ~/.vimrc 文件, 執行以下命令, 有該文件去掉第一行
touch /root/.vimrc
echo "set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936" >> /root/.vimrc
source ~/.vimrc