Possible Duplicate:
URL encode a NSString
I am trying to send strings with whitespaces like:
stack exchange
by
[[ApiClient sharedClient] getPath:[NSString stringWithFormat:@"/search/?q=%@", @"stack exchange"] parameters:nil success:^ ...
But I am getting
Error Domain=NSURLErrorDomain Code=-1000 "bad URL"
How can I solde this?