Monika Solanki
Sat, 13 Mar 2010 03:00:12 -0800
This is what I used, but I still had to do the replace. Monika Sergio Fernández wrote:
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
-- Dr Monika Solanki F27 Department of Computer Science University of Leicester Leicester LE1 7RH United Kingdom Tel: +44 116 252 3828 Google: 52.653791,-1.158414 http://www.cs.le.ac.uk/people/ms491