问题
Issues:
- Using ls in GIT shows all unicode in filenames as '?' (i.e. ???.mp3).
- When using git add -A the following error is returned: "fatal: unable to stat 'example/???.mp3': no such file or directory"
Is there a solution to this?
Thanks.
回答1:
Msysgit doesn't have support for non-ASCII characters in filenames. See its issue 80 for details.
Consider using Cygwin's git package instead, which does have full UTF-8 support.
回答2:
As of MSysGit 1.7.10 (the latest version at this time), Unicode is correctly supported on Windows, at the condition you tweak some settings and use a truetype font in the console.
See explanations here, including how to deal with previous repositories.
回答3:
Git for Windows now uses Unicode for filenames.
[Edit: s/not/now/.. sic :( ]
来源:https://stackoverflow.com/questions/8284306/git-does-not-handle-filenames-which-contain-unicode-chare-g-chinese-korean