On 13 Mar 2010, at 07:36, Monika Solanki wrote:

> Hello,
> 
> While programmatically accessing dbpedia through GET using Jersey, I had to 
> urlencode the query to UTF-8 and then replace the "+" with "%20".

Yep, that's a well know (but rarely understood) oddity. [1]

> Does anyone know of a better way to do this ?

Have you tried UriBuilder? [2]

Damian

[1] 
<http://en.wikipedia.org/wiki/Percent-encoding#The_application.2Fx-www-form-urlencoded_type>
[2] 
<https://jsr311.dev.java.net/nonav/releases/1.1/javax/ws/rs/core/UriBuilder.html>


Reply via email to