Re: encoding sparql queries made to dbpedia

Use the URLEncoder available in the standard Java API:

http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html


On Sat, 2010-03-13 at 07:36 +0000, 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". 
> Does anyone know of a better way to do this ?
> 
> Thanks,
> 
> Monika
> 

-- 
Sergio Fernández <sergio.fernandez@fundacionctic.org>

Received on Saturday, 13 March 2010 10:13:12 UTC