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

Re: Check out repository with encoded characters

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: Thu, 27 Mar 2008 13:26:07 +0100

On 3/27/08, Victor Engmark <victor.engmark_at_gmail.com> wrote:
> On Wed, Mar 26, 2008 at 8:25 AM, Ryan Schmidt
> <subversion-2008a_at_ryandesign.com> wrote:
>
> > On Mar 25, 2008, at 07:39, Erik Huelsmann wrote:
> > > On 3/25/08, Victor Engmark wrote:
> >
> >
> >
> > >> On Fri, Mar 21, 2008 at 7:56 AM, Ryan Schmidt wrote:
> > >>> On Mar 21, 2008, at 01:54, Victor Engmark wrote:
> > >>>> On Fri, Mar 21, 2008 at 1:10 AM, Ryan Schmidt wrote:
> > >>>>> On Mar 20, 2008, at 09:33, Victor Engmark wrote:
> > >>>>>> How would you check out a repository created with the command
> > >>>>>> $ svnadmin create "æ ø å"
> > >>>>>> via HTTP(S)?
> > >>>>>>
> > >>>>>> I've tried the following:
> > >>>>>> $ svn co "https://example.org/svn/%c3%a6 ø å"
> > >>>>>> svn: PROPFIND request failed on '/svn/%C3%A6%20%C3%B8%20%C3%A5'
> > >>>>>> svn: Could not open the requested SVN filesystem
> > >>>>>>
> > >>>>>> This works fine for other repositories:
> > >>>>>> $ svnadmin create "a b c"
> > >>>>>> $ svn co "https://example.org/svn/a b c"
> > >>>>>> Checked out revision 0.
> > >>>>>>
> > >>>>>> My shell uses UTF-8 encoding:
> > >>>>>> $ set | grep LANG
> > >>>>>> GDM_LANG=en_US.UTF-8
> > >>>>>> LANG=en_US.UTF-8
> > >>>>>
> > >>>>> If this is a set of repositories served using SVNParentPath, then
> > >>>>> browse to https://example.org/svn in a web browser and copy
> > >>>>> the link
> > >>>>> to the æ ø å repository.
> > >>>>
> > >>>> I don't have a web interface to the server (I get a "403:
> > >>>> Forbidden"
> > >>>> message at https://example.org/svn).
> > >>>
> > >>> Add "SVNListParentPath on" to your Apache configuration.
> > >>
> > >> Did that, and got the following error message on the web page:
> > >> <?xml version="1.0" encoding="utf-8"?>
> > >> <D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
> > >> xmlns:C="svn:">
> > >> <C:error/>
> > >> <m:human-readable errcode="22">
> > >> Can't convert string from native encoding to 'UTF-8':
> > >> </m:human-readable>
> > >> </D:error>
> > >
> > > That's correct. I'm not aware of a way to make Apache locale aware.
> > > Unfortunately, that's what's required for Subversion to work with
> > > non-ascii paths to a repository.
> >
> > Works fine on a Mac. So, get a Mac to serve your repositories.
> >
> > I used "svnadmin create foo" and then in the Finder I renamed "foo"
> > to "æ ø å" (since I don't know how to type non-ASCII characters in
> > the Terminal). Viewed in Firefox, I see:
> >
> > Collection of Repositories
> >
> > * æ ø å/
> >
> > Clicking this gives me:
> >
> > http://www.example.com/svn/%c3%a6%20%c3%b8%20a%cc%8a/
> >
>
> That's odd - It looks like "å" is translated to "a%cc%8a", which is
> different from my result, "%C3%A5".

What you're seeing is the difference between how Linux/Windows and Mac
encode Unicode. This is one of the problems I'm trying to solve as we
speak.

Bye,

Erik.
Received on 2008-03-27 13:26:56 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.