[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AW: AW: AW: svnlook proplist & unicode characters

From: Matthias Ludwig <matthias-ludwig_at_gmx.net>
Date: Wed, 17 Dec 2014 21:48:27 +0100

There is an error in this string "//a//o\u0308".
It should be "/a/o\u0308". But this does not change the behaviour. I've
tried it again, the problem persists.

/ -> slash for path separator
a -> name of subfolder
/ -> slash for path separator
o -> for "o"
\u -> escaping: here comes a UTF-16 code in hex
0308 unicode Unicode Character 'COMBINING DIAERESIS'

Java String are internaly stored in Unicode (UTF-8, UTF-16 or whatever, it's
internal - you tell java what you want, when you pull it out)
The String ist therefore converted in the Runtime.getRuntime().exec method.

> -----Ursprüngliche Nachricht-----
> Von: Philip Martin [mailto:philip.martin_at_wandisco.com]
> Gesendet: Mittwoch, 17. Dezember 2014 19:49
> An: Matthias Ludwig
> Cc: users_at_subversion.apache.org
> Betreff: Re: AW: AW: svnlook proplist & unicode characters
>
> "Matthias Ludwig" <matthias-ludwig_at_gmx.net> writes:
>
> > run(pathToSvn, pathToTest, repo,
>
env,pathToSvn+"\\svnlook","proplist",repo.getAbsolutePath(),"//a//o\u0308");
>
> I'm not a Java or Windows expert. What is the encoding of
>
> "//a//o\u0308"
>
> is it UTF-8 or UTF-16? If it is UTF-16 when/where does it get converted
> to UTF-8?
>
> --
> Philip Martin | Subversion Committer
> WANdisco // *Non-Stop Data*
Received on 2014-12-17 21:49:12 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.