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

Re: How to properly URI encode a string?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-03 22:48:45 CEST

On Mon, 2004-05-03 at 13:41, Balazs Wellisch wrote:
> Hello everyone,
> Does anyone know how to specify directory names with spaces on Linux? When I
> try to execute the following statement I get an error:
> svn import /tmp file:///home/svnroot/Project\ Name -m 'Initial layout';
> I get the error:
> svn: URL 'file:///home/svnroot/Project Name' is not properly URI-encoded
> So how do I properly URL Encode such a string? I'd be very grateful for some
> PERL code to get this done.

The URL encoding for space is %20:

svn import /tmp file:///home/svnroot/Project%20Name -m 'Initial layout'

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 3 22:53:19 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.