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

URI escaping in repository URLs

From: Stephen Warren <swarren_at_paramanet.com>
Date: 2004-03-31 02:41:21 CEST

I attempted to do the following:

svn import . "http://localhost/repos/document/System Hardware" -m xxxx

which complained about the URI not being URI-encoded. The following fixed it:

svn import . "http://localhost/repos/document/System%20Hardware" -m xxxx

My question is: Why doesn't the svn client do this for me? I found some bugs discussing this in the issue tracker, but didn't really follow why the client couldn't do this (I can just about see why the internal repository access libraries can't)

Is it not as simple as changing every non A-Za-z0-9 and a few others to %xx encoding? Isn't it still this simple even with international characters - any character not in the previous list is just forcably encoded into UTF-8?

The requirement for the user to do this encoding, especially for simple cases like spaces, is a bit of a pain - it's really exposing internal implementation details (URIs) to the end-user, who probably doesn't care...

--
Stephen Warren, Software Engineer, Parama Networks, San Jose, CA
http://www.wwwdotorg.org/work_contact/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 31 02:41:52 2004

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.