git log顯示中文亂碼問題解決

2021-10-04 19:09:57 字數 590 閱讀 6942

1、執行git bash視窗,在該視窗導航條(即最上面)右鍵,選擇options>text,找到下面兩處

locale:選擇 zh_cn 

charector set:選擇 utf-8

2、到git bash命令視窗輸入如下設定命令語句

git config --global i18n.commitencoding utf-8  --注釋:該命令表示提交命令的時候使用utf-8編碼集提交

git config --global i18n.logoutputencoding utf-8 --注釋:該命令表示日誌輸出時使用utf-8編碼集顯示

export lesscharset=utf-8  --注釋:設定less字符集為utf-8

整理 SecureCRT 中文顯示亂碼問題解決

遠端 linux 機器。修改環境變數 lang 例如在 bash profile 裡面新增?12 3 user specific environment and startup programs lang zh cn.utf8 exportlang 重新登入之後生效。修改後檢視當前設定 12 3 4...

Git Bash中Git log中文亂碼

在網上搜尋良久,大部分是 git config global i18n.commitencoding utf 8 git config global i18n.logoutputencoding gbk export lesscharset utf 8但是問題依然存在。再看上述命令,提交的編碼是ut...

vim 中文顯示亂碼問題解決

由於在windows下預設是gb編碼,而我的vim預設是utf 8 gedit預設也是utf 8 所以開啟會成亂碼。修改了一下配置檔案,使vi支援gb編碼就好了。vi vimrc let termencoding encoding set fileencodings utf 8,gbk wq 再次開...