Answer
Encoding parameters in query string or even the url path etc. is required otherwise the url become unusable. This can be achieved by using stringByAddingPercentEscapesUsingEncoding method.
-
NSString *url = @"http://www.developerfeed.com/search.jsp?params=Java Developer";
-
NSString* encodedUrl =
-
[url stringByAddingPercentEscapesUsingEncoding:
-
NSASCIIStringEncoding];
-
-
NSLog(@"Encoded URL %@",encodedUrl);
-
// output will be
-
//http://www.developerfeed.com/search.jsp?params=Java%20Developer;