I\'m trying to connect to a webservice where my querysting holds some data. The bad thing is that this data contains utf-8 charcters, which renders a problem.
If I s
I think you want a URL encoded query string. If so, use:
String query = "?param=value"; String host = "http://my.host.name.com/"; String encodedUrl = host + UrlEncoder.encode(query,"utf-8");
The basic idea is that you only want to encode the query string, not the host name or protocol.