Campbell Ritchie wrote:Try changing the space to its HTML escape which is something like %20.
It's %22 for double quotes.
Miran Cvenkel wrote:Yeah, managed to do it:
You can also use URLEncoder:
Unfortunately there is an UnsupportedEncodingException that can be thrown so you'd need to handle that. However, it's a sub class of IOException, and you probably already have to handle IOException for the rest of the networking code, so that shouldn't be a problem.