diff --git a/images/utf8_01.png b/images/utf8_01.png new file mode 100644 index 0000000..3c47be6 Binary files /dev/null and b/images/utf8_01.png differ diff --git a/images/utf8_02.png b/images/utf8_02.png new file mode 100644 index 0000000..36cbe38 Binary files /dev/null and b/images/utf8_02.png differ diff --git a/images/utf8_03.png b/images/utf8_03.png new file mode 100644 index 0000000..9726213 Binary files /dev/null and b/images/utf8_03.png differ diff --git a/log_utf8.md b/log_utf8.md new file mode 100644 index 0000000..09e6fc6 --- /dev/null +++ b/log_utf8.md @@ -0,0 +1,21 @@ +### git log 亂碼 + +![git log 亂碼](images/utf8_01.png) + +#### 解決方法 +設定環境變數 LC_ALL=C.UTF-8 + +Command Prompt +```cmd +set LC_ALL=C.UTF-8 +``` + +Powershell +```powershell +$env:LC_ALL=C.UTF-8 +``` + +![git log 正常](images/utf8_03.png) + +#### 永久有效設定 +![environment variable setting](images/utf8_02.png)