GIT: does not handle filenames which contain unicode char(e.g. chinese/korean)

筅森魡賤 提交于 2020-01-11 00:56:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!