cat能看到中文vim乱码解决方法

cat能看到中文vim乱码解决方法:(推荐:vim教程)

在当前用户家目录下 .vimrc 文件中添加设置使用编码的代码:

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

在当前用户家目录下 .bashrc 文件中添加或修改编码为UTF-8

export LC_ALL="zh_CN.UTF-8"

更多python知识请关注python教程。

来源:PY学习网:原文地址:https://www.py.cn/article.html

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » cat能看到中文vim乱码解决方法