3

When I run git diff command, in the files list all files with accents are poorly displayed :

 git diff --name-status xxxx yyyyyy

return

M       "\303\251\303\251.txt"

How I can preserve accents to have this ? :

M       "éé.txt"

Thanks

Edit : I specify that the file is encoded in UTF-8 and I tried with git 2.3.2 from OSX and git 1.9.1 from Ubuntu

4ae1e1
  • 7,228
  • 8
  • 44
  • 77
mdespeuilles
  • 178
  • 2
  • 8

1 Answers1

5

You can simply do:

git config core.quotepath off   
# or
git config --global core.quotepath off

See Git for Windows Unicode Support -- Settings.

By default, git will print non-ASCII file names in quoted octal notation, i.e. "\nnn\nnn...".
This can be disabled with:

 git config [--global] core.quotepath off

I just tested it with the latest Git for Windows 2.3.5.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250