git log cannot print correct chinese charecter #9621

Open
opened 2026-01-31 01:59:27 +00:00 by claunia · 0 comments
Owner

Originally created by @shinegrin on GitHub (Jul 15, 2020).

I'm running powershell with windows terminal, with ENV LESSCHARSET=utf-8 and gitconfig as following:

[difftool "sourcetree"]
	cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
	cmd = "'' "
	trustExitCode = true
[i18n]
	commitencoding = utf-8
	logoutputencoding = utf-8
[core]
	quotepath = false
[gui]
	encoding = utf-8

It works well when i using powershell without windows terminal.
Anyone knows how to fix it?

Originally created by @shinegrin on GitHub (Jul 15, 2020). I'm running powershell with windows terminal, with ENV `LESSCHARSET=utf-8` and gitconfig as following: ```gitconfig [difftool "sourcetree"] cmd = '' \"$LOCAL\" \"$REMOTE\" [mergetool "sourcetree"] cmd = "'' " trustExitCode = true [i18n] commitencoding = utf-8 logoutputencoding = utf-8 [core] quotepath = false [gui] encoding = utf-8 ``` It works well when i using powershell without windows terminal. Anyone knows how to fix it?
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 01:59:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9621