W3C home > Mailing lists > Public > public-lod@w3.org > March 2010

Re: encoding sparql queries made to dbpedia

From: Sergio Fernández <sergio.fernandez@fundacionctic.org>
Date: Sat, 13 Mar 2010 11:14:47 +0100
To: m.solanki@mcs.le.ac.uk
Cc: Linked Data community <public-lod@w3.org>
Message-ID: <1268475287.2331.1.camel@krusty.wikier.org>
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

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:25 UTC