解决最新版VS Code中git log 中文乱码问题
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
在Windows下使用VSCode编译运行,都出现中文乱码的问题,今天我就遇见了这种情况,上网搜了半天也没有找到正确的解决方法,现将我把我的方法晒一下. 中文的windows
现象如下:中文全部显示成字母和数字 ![853b4d5181674c5aac56a4f15b0c8538.png][] 解决办法: 在git bash终端输入如下命令:
首先,options-text-utf8, 若不起作用,执行如下命令: ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_sh
依次点击“文件”->“首选项”->“设置” ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_a
三条命令fix乱码问题: git config --global gui.encoding utf-8 git config --global i18n.commitenc
以下在git log时无效: git config --global core.quotepath false 显示 status 编码 $ git
git config --global i18n.commitencoding utf-8 git config --global i18n.logoutput
进入vs code界面 选择 文件 → 首选项 → 设置 → 搜索 files.autoGuessEncoding 勾选该设置即可 ![watermark_type_ZmF
VSCODE默认是UTF-8编码打开文件的。如果遇到了像GB18030 GBK等等的编码,就显示乱码了。 > > 找到右下角的UTF-8, > > 上面正中出现“r
还没有评论,来说两句吧...