abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <dan.diepho...@mulesource.com>
Subject Roundtrip IRI escaping
Date Mon, 08 Oct 2007 19:46:06 GMT
I have some encoded spaces in my IRIs and I was wondering if the 
behavior below was expected:

IRI iri = new IRI("./bar%20baz");
assertEquals("./bar%20baz", iri.toString());
IRI iri2 = new IRI("http://foo.com").resolve(iri);
assertEquals("http://foo.com/foo/bar%20baz", iri.toString()); // This is 
what I was expecting
The actual string on the last one is "http://foo.com/foo/bar baz". Is 
this expected? It makes using the abdera client a little tricky as I 
can't just resolve() my href, then pass off the iri2.toString() to the 

- Dan

Dan Diephouse
http://mulesource.com | http://netzooid.com/blog

View raw message