# ls-tree with non-english characters

5 messages from 2011-07-26 to 2011-07-26. Participants: Tajti Ákos, SZEDER Gábor, Alexey Shumkin.
Thread: https://gitlist.dev/t/27921

## Tajti Ákos, 2011-07-26 09:38

Subject: ls-tree with non-english characters
Message-ID: <4E2E8B33.6070900@intland.com>
URL: https://gitlist.dev/e/4E2E8B33.6070900%40intland.com

```
Dear List,

I tried to use git ls-tree but on blob names containing non-english
characters I get a strange output. For example:

ákosű -> \303\241kos\305\261

There's no mention of this format in the manual of ls-tree. Could you please
help me on resolving this cryptic string to the original form?

Thanks in advance,
Ákos Tajti

```

## SZEDER Gábor, 2011-07-26 10:39

Subject: Re: ls-tree with non-english characters
Message-ID: <20110726103927.GA31625@goldbirke>
URL: https://gitlist.dev/e/20110726103927.GA31625%40goldbirke
In-Reply-To: <4E2E8B33.6070900@intland.com>

```
Szervusz Ákos,


On Tue, Jul 26, 2011 at 11:38:59AM +0200, Tajti Ákos wrote:
> I tried to use git ls-tree but on blob names containing non-english
> characters I get a strange output. For example:
> 
> ákosű -> \303\241kos\305\261
> 
> There's no mention of this format in the manual of ls-tree. Could you please
> help me on resolving this cryptic string to the original form?

Try with the -z option, it seems to do more than the documentation
suggests:

  $ git ls-tree HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	"\303\241rv\303\255zt\305\261r\305\221"
  $ git ls-tree -z HEAD
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	árvíztűrő


Gábor

```

## Tajti Ákos, 2011-07-26 11:30

Subject: Re: ls-tree with non-english characters
Message-ID: <4E2EA54E.9030204@intland.com>
URL: https://gitlist.dev/e/4E2EA54E.9030204%40intland.com
In-Reply-To: <20110726103927.GA31625@goldbirke>

```
Thanks, Gábor, you helped a lot!

Regards,
Ákos

2011.07.26. 12:39 keltezéssel, SZEDER Gábor írta:
> Szervusz Ákos,
>
>
> On Tue, Jul 26, 2011 at 11:38:59AM +0200, Tajti Ákos wrote:
>> I tried to use git ls-tree but on blob names containing non-english
>> characters I get a strange output. For example:
>>
>> ákosű ->  \303\241kos\305\261
>>
>> There's no mention of this format in the manual of ls-tree. Could you please
>> help me on resolving this cryptic string to the original form?
> Try with the -z option, it seems to do more than the documentation
> suggests:
>
>    $ git ls-tree HEAD
> 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	"\303\241rv\303\255zt\305\261r\305\221"
>    $ git ls-tree -z HEAD
> 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391	árvíztűrő
>
>
> Gábor
>

```

## Alexey Shumkin, 2011-07-26 11:33

Subject: Re: ls-tree with non-english characters
Message-ID: <loom.20110726T133202-838@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110726T133202-838%40post.gmane.org
In-Reply-To: <4E2E8B33.6070900@intland.com>

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

> 
> Dear List,
> 
> I tried to use git ls-tree but on blob names containing non-english
> characters I get a strange output. For example:
> 
> ákosű -> \303\241kos\305\261
> 
> There's no mention of this format in the manual of ls-tree. Could you please
> help me on resolving this cryptic string to the original form?
> 
> Thanks in advance,
> Ákos Tajti
> 

Russian Windows git users know this feature

git config [--global] core.quotepath false
resolves it (without -z)

and, yes, man git-config

```

## Tajti Ákos, 2011-07-26 11:39

Subject: Re: ls-tree with non-english characters
Message-ID: <4E2EA764.60304@intland.com>
URL: https://gitlist.dev/e/4E2EA764.60304%40intland.com
In-Reply-To: <20110726151739.51be3f55@ashu.dyn.rarus.ru>

```
Dear Alaxey,

thanks, I didn't know about this configuration option.

Regards,
Ákos Tajti

2011.07.26. 13:17 keltezéssel, Alexey Shumkin írta:
> В Tue, 26 Jul 2011 11:38:59 +0200
> Tajti Ákos<akos.tajti@intland.com>  пишет:
>
>> Dear List,
>>
>> I tried to use git ls-tree but on blob names containing non-english
>> characters I get a strange output. For example:
>>
>> ákosű ->  \303\241kos\305\261
>>
>> There's no mention of this format in the manual of ls-tree. Could you
>> please help me on resolving this cryptic string to the original form?
>>
>> Thanks in advance,
>> Ákos Tajti
> Russian Windows git users know this feature
>
> git config [--global] core.quotepath false
> resolves it
>
> and, yes, man git-config

```
