Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 848
whamsicore Avatar asked Nov 27 '11 07:11

whamsicore


2 Answers

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.

like image 175
CharlesB Avatar answered Nov 08 '22 21:11

CharlesB


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.

like image 4
ak2 Avatar answered Nov 08 '22 21:11

ak2