encoding problem #21766

Open
opened 2026-01-31 07:54:19 +00:00 by claunia · 0 comments
Owner

Originally created by @lelelemr on GitHub (May 25, 2024).

There seems to be some encoding issues when I use git bash in terminal. Commands such as ls do not contain garbled characters, but commands such as git status do.

terminal setting:

                 ...},{
                "commandline": "D:\\Git\\Git\\bin\\bash.exe -li",
                "guid": "{5cb277fc-2e8b-48ea-b0ea-f7f673df0fab}",
                "hidden": false,
                "icon": "D:\\Git\\Git\\mingw64\\share\\git\\git-for-windows.ico",
                "name": "Git Bash",
                "startingDirectory": "%USERPROFILE%",
                "tabTitle": null
            }

problem like this:
image
image

when i use powershell and runchcp 65001. it can be solved. what can i do to solve this in terminal page 'Git Bash'?

Originally created by @lelelemr on GitHub (May 25, 2024). There seems to be some encoding issues when I use git bash in terminal. Commands such as ls do not contain garbled characters, but commands such as git status do. terminal setting: ``` ...},{ "commandline": "D:\\Git\\Git\\bin\\bash.exe -li", "guid": "{5cb277fc-2e8b-48ea-b0ea-f7f673df0fab}", "hidden": false, "icon": "D:\\Git\\Git\\mingw64\\share\\git\\git-for-windows.ico", "name": "Git Bash", "startingDirectory": "%USERPROFILE%", "tabTitle": null } ``` problem like this: ![image](https://github.com/microsoft/terminal/assets/130736717/af7711ba-64d3-4749-a07c-57e7a7f032e1) ![image](https://github.com/microsoft/terminal/assets/130736717/013baa4b-05ae-4b1b-8fc3-15e6fb9695ed) when i use powershell and run`chcp 65001`. it can be solved. what can i do to solve this in terminal page 'Git Bash'?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21766