When handling Japanese files, describe the correspondence between garbled characters that are displayed as \xx (backslash, \mark number).
- Installation procedure of Git for Windows (Git Bash)
- What to do when Japanese is displayed with \xx (\digit)
- Conclusion - How to deal Japanese in Git Bash
Please refer here for the download and installation procedure.
What to do when Japanese is displayed with \xx (\digit)
By default, Git Bash makes Japanese files look garbled. However, it is not merely a garbled character, and Japanese is displayed as \xx (backslash digit) respectively.
Such a Japanese folder,
this is displayed.
In this case, it is necessary to change the locale and font setting of Git Bash as the initial setting. Click the icon in the upper left corner of the window or right click on the screen and select Options.
Since it is empty like this by default, select ja_JP.
Also select MS Gothic from Font> Select.
Restart Git Bash
Here Restart (close and open) Git Bash.
This makes it possible to display Japanese without garbling.