From: Thomas Singer Date: Tue, 01 Dec 2009 08:57:28 GMT Subject: Re: non-US-ASCII file names (e.g. Hiragana) on Windows Message-ID: <4B14DA78.70906@syntevo.com> In-Reply-To: <200911282100.23000.j6t@kdbg.org> Johannes Sixt wrote: > On Samstag, 28. November 2009, Thomas Singer wrote: >> I've created a file with unicode characters in its name (using Java): >> >> new File(dir, "\u3041\u3042\u3043\u3044").createNewFile(); >> ... >> $ git add . >> fatal: unable to stat '????': No such file or directory >> >> What should I do to make Git recognize these characters? > > You cannot on a German Windows. > > You can switch your Windows to Japanese (not the UI, just the codepage > aka "locale"; yes, that's possible, I have such a setup), but even then the > characters of the file name will be recorded in Shift-JIS encoding, not UTF-8 > or Unicode. When you later switch back to German, these bytes will be > interpreted as cp850 or cp1252 text and displayed accordingly. Who is interpreting the file names? Windows or Git or Java? -- Tom