# Special characters in file name

9 messages from 2011-09-02 to 2011-09-05. Participants: Tajti Ákos, Alexey Shumkin, Jonathan Nieder, Jakub Narebski, Johannes Sixt.
Thread: https://gitlist.dev/t/28286

## Tajti Ákos, 2011-09-02 12:06

Subject: Special characters in file name
Message-ID: <4E60C6D0.7090609@intland.com>
URL: https://gitlist.dev/e/4E60C6D0.7090609%40intland.com

```
Dear List,

I have a file named "árvíz.txt" in my repository. When modify that file 
and execute git diff, the first line looks like this:
diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"

Is there an option that (if specified) will get git to print "árvíz.txt" 
instead of this escaped string?

Thanks in advance,
Ákos Tajti

```

## Alexey Shumkin, 2011-09-02 12:38

Subject: Re: Special characters in file name
Message-ID: <loom.20110902T143646-347@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110902T143646-347%40post.gmane.org
In-Reply-To: <4E60C6D0.7090609@intland.com>

```
Tajti Ákos <akos.tajti <at> intland.com> writes:

> 
> Dear List,
> 
> I have a file named "árvíz.txt" in my repository. When modify that file 
> and execute git diff, the first line looks like this:
> diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"
> 
> Is there an option that (if specified) will get git to print "árvíz.txt" 
> instead of this escaped string?
> 
> Thanks in advance,
> Ákos Tajti
> 

please, refresh your memory )))
http://comments.gmane.org/gmane.comp.version-control.git/177849

see my comment
http://permalink.gmane.org/gmane.comp.version-control.git/177857

```

## Jonathan Nieder, 2011-09-03 14:46

Subject: Re: Special characters in file name
Message-ID: <20110903144617.GA17893@elie>
URL: https://gitlist.dev/e/20110903144617.GA17893%40elie
In-Reply-To: <loom.20110902T143646-347@post.gmane.org>

```
Hi Alexey,

Alexey Shumkin wrote:
> Tajti Ákos writes:

>> I have a file named "árvíz.txt" in my repository. When modify that file 
>> and execute git diff, the first line looks like this:
>> diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"
>>
>> Is there an option that (if specified) will get git to print "árvíz.txt" 
>> instead of this escaped string?
[...]
> please, refresh your memory )))
> http://comments.gmane.org/gmane.comp.version-control.git/177849
>
> see my comment
> http://permalink.gmane.org/gmane.comp.version-control.git/177857

Cc-ing Ákos so he can actually get your message this time. :)  (FWIW
the convention on this list is always to reply-to-all.)

Thanks,
Jonathan

```

## Jakub Narebski, 2011-09-03 19:57

Subject: Re: Special characters in file name
Message-ID: <m3aaal4cyj.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3aaal4cyj.fsf%40localhost.localdomain
In-Reply-To: <4E60C6D0.7090609@intland.com>

```
Tajti Ákos <akos.tajti@intland.com> writes:

> I have a file named "árvíz.txt" in my repository. When modify that
> file and execute git diff, the first line looks like this:
> diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"
> 
> Is there an option that (if specified) will get git to print
> "árvíz.txt" instead of this escaped string?

Yes, there is, namely `core.quotepath`.

This probably should make it into FAQ on Git Wiki, and into git-diff
manpage...
-- 
Jakub Narębski

```

## Alexey Shumkin, 2011-09-03 20:09

Subject: Re: Special characters in file name
Message-ID: <20110904000933.195d5bf4@zappedws>
URL: https://gitlist.dev/e/20110904000933.195d5bf4%40zappedws
In-Reply-To: <20110903144617.GA17893@elie>

```
> Hi Alexey,
> 
> Alexey Shumkin wrote:
> > Tajti Ákos writes:
> 
> >> I have a file named "árvíz.txt" in my repository. When modify that
> >> file and execute git diff, the first line looks like this:
> >> diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"
> >>
> >> Is there an option that (if specified) will get git to print
> >> "árvíz.txt" instead of this escaped string?
> [...]
> > please, refresh your memory )))
> > http://comments.gmane.org/gmane.comp.version-control.git/177849
> >
> > see my comment
> > http://permalink.gmane.org/gmane.comp.version-control.git/177857
> 
> Cc-ing Ákos so he can actually get your message this time. :)  (FWIW
> the convention on this list is always to reply-to-all.)
Yes, I know, but I replied with the gmane.org site form, and it did not
CC-ed

```

## Tajti Ákos, 2011-09-05 12:14

Subject: Re: Special characters in file name
Message-ID: <4E64BD3D.6060900@intland.com>
URL: https://gitlist.dev/e/4E64BD3D.6060900%40intland.com
In-Reply-To: <20110904000933.195d5bf4@zappedws>

```
Thanks four your answer. However, it didn't help. After setting the 
core.quotepath option to false I get this:

diff --git a/<E1>rv<ED>zt<FB>r<F5> b/<E1>rv<ED>zt<FB>r<F5>

Is there a solution?

Thanks,
Ákos Tajti

2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:
>> Hi Alexey,
>>
>> Alexey Shumkin wrote:
>>> Tajti Ákos writes:
>>>> I have a file named "árvíz.txt" in my repository. When modify that
>>>> file and execute git diff, the first line looks like this:
>>>> diff --git "a/\303\241rv\303\255z.txt" "b/\303\241rv\303\255z.txt"
>>>>
>>>> Is there an option that (if specified) will get git to print
>>>> "árvíz.txt" instead of this escaped string?
>> [...]
>>> please, refresh your memory )))
>>> http://comments.gmane.org/gmane.comp.version-control.git/177849
>>>
>>> see my comment
>>> http://permalink.gmane.org/gmane.comp.version-control.git/177857
>> Cc-ing Ákos so he can actually get your message this time. :)  (FWIW
>> the convention on this list is always to reply-to-all.)
> Yes, I know, but I replied with the gmane.org site form, and it did not
> CC-ed

```

## Tajti Ákos, 2011-09-05 13:12

Subject: Re: Special characters in file name
Message-ID: <4E64CAD8.5040908@intland.com>
URL: https://gitlist.dev/e/4E64CAD8.5040908%40intland.com
In-Reply-To: <20110905170237.3ed59c6a@ashu.dyn.rarus.ru>

```
Both the terminal encoding and the filename encoding are UTF-8.

Ákos

2011.09.05. 15:02 keltezéssel, Шумкин Алексей írta:
>> Thanks four your answer. However, it didn't help. After setting the
>> core.quotepath option to false I get this:
>>
>> diff --git a/<E1>rv<ED>zt<FB>r<F5>  b/<E1>rv<ED>zt<FB>r<F5>
>>
>> Is there a solution?
> What terminal encoding do you use? and what is its encoding?
> It seems to me terminal encoding is UTF-8 but filename encoding is not
> the same.
> I get the same behaviour on Linux UTF-8 terminal for the project
> created on Windows with filenames in cp1251-encoding.
>
>> Thanks,
>> Ákos Tajti
>>
>> 2011.09.03. 22:09 keltezéssel, Alexey Shumkin írta:
>>>> Hi Alexey,
>>>>
>>>> Alexey Shumkin wrote:
>>>>> Tajti Ákos writes:
>>>>>> I have a file named "árvíz.txt" in my repository. When modify
>>>>>> that file and execute git diff, the first line looks like this:
>>>>>> diff --git "a/\303\241rv\303\255z.txt"
>>>>>> "b/\303\241rv\303\255z.txt"
>>>>>>
>>>>>> Is there an option that (if specified) will get git to print
>>>>>> "árvíz.txt" instead of this escaped string?
>>>> [...]
>>>>> please, refresh your memory )))
>>>>> http://comments.gmane.org/gmane.comp.version-control.git/177849
>>>>>
>>>>> see my comment
>>>>> http://permalink.gmane.org/gmane.comp.version-control.git/177857
>>>> Cc-ing Ákos so he can actually get your message this time. :)
>>>> (FWIW the convention on this list is always to reply-to-all.)
>>> Yes, I know, but I replied with the gmane.org site form, and it did
>>> not CC-ed

```

## Johannes Sixt, 2011-09-05 13:16

Subject: Re: Special characters in file name
Message-ID: <4E64CBB0.7020902@viscovery.net>
URL: https://gitlist.dev/e/4E64CBB0.7020902%40viscovery.net
In-Reply-To: <4E64BD3D.6060900@intland.com>

```
Am 9/5/2011 14:14, schrieb Tajti Ákos:
> Thanks four your answer. However, it didn't help. After setting the
> core.quotepath option to false I get this:
> 
> diff --git a/<E1>rv<ED>zt<FB>r<F5> b/<E1>rv<ED>zt<FB>r<F5>
> 
> Is there a solution?

This is because the output goes through the pager (less), which treats
non-ASCII characters.

Tweak your settings (LESSCHARSET) or use a different or no pager.

-- Hannes

```

## Tajti Ákos, 2011-09-05 13:33

Subject: Re: Special characters in file name
Message-ID: <4E64CFC0.8030704@intland.com>
URL: https://gitlist.dev/e/4E64CFC0.8030704%40intland.com
In-Reply-To: <4E64CBB0.7020902@viscovery.net>

```
Thank you very much, setting LESSCHARSET solved this last problem!

Ákos

2011.09.05. 15:16 keltezéssel, Johannes Sixt írta:
> Am 9/5/2011 14:14, schrieb Tajti Ákos:
>> Thanks four your answer. However, it didn't help. After setting the
>> core.quotepath option to false I get this:
>>
>> diff --git a/<E1>rv<ED>zt<FB>r<F5>  b/<E1>rv<ED>zt<FB>r<F5>
>>
>> Is there a solution?
> This is because the output goes through the pager (less), which treats
> non-ASCII characters.
>
> Tweak your settings (LESSCHARSET) or use a different or no pager.
>
> -- Hannes

```
