git not displaying unicode file names

GitUnicode

Git Problem Overview


I'm using git 2.5.4 on Mac OS X.

I have filenames containing é and git is displaying it with escapes. Is there a way to make it use unicode and show the character? The terminal can obviously handle it.

> ls
Sél

> git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
"S\303\251l"

I'd like that file to display as Sél, not S\303\251l.

Git Solutions


Solution 1 - Git

Check first if git config core.quotePath false helps.

git config --global core.quotePath false

If not, as stated in "Git and the Umlaut problem on Mac OS X", try:

git config --global core.precomposeunicode true

From git config man page:

core.precomposeUnicode

> This option is only used by Mac OS implementation of Git.
When core.precomposeUnicode=true, Git reverts the unicode decomposition of filenames done by Mac OS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRob NView Question on Stackoverflow
Solution 1 - GitVonCView Answer on Stackoverflow