I'm trying to do an http request in java but I get this error:
java.lang.IllegalArgumentException: Invalid % sequence: %Ne in query at index 80:
try {
HttpClient Client = new DefaultHttpClient();
String URL = "Example.com";
HttpGet httpget = new HttpGet(URL);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String SetServerString = Client.execute(httpget, responseHandler);
Log.e("iets",SetServerString);
}
catch (ClientProtocolException e) {
e.printStackTrace();
}
catch (IOException e) {
e.printStackTrace();
}
It seems I cant use the character '%' in the query. But the thing is that I really need to use the '%' since it represents a space in my echonest.php.
How can I solve this problem?
thanks in advance
Escapers for that.