I am working on app, in which I interacting with web-service most of time. I am getting problem when I added space on somewhere it convert space to %20 when converting url to request. I googled but couldn't find any healthy solution according to my requirement because its only changing when url to request. Here is what I am doing.
url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
NSLog(@"Request is : %@", request);
[[NSURLConnection alloc] initWithRequest:request delegate:self];
and on NSLog
it show me %20 where ever space is given. If someone know kindly suggest me better way to solve this issue. This will be great for me. Thanks in advance.