Error while reading JSON url in nsstring
i am sending one url to the server http://ogcitsco.w05.winhost.com/Service.svc/getsubmenu/south indian/restaurant/Lunch in which i am getting bad url response, since there is one space between two words south indian, how should i work with that, i have开发者_StackOverflow tried to remove the space and passed the url however in response getting null value, when i paste the above url into browser it is showing the response
Remember to encode your URL first: [@"http://ogcitsco.w05.winhost.com/Service.svc/getsubmenu/south indian/restaurant/Lunch" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
a space can be changed to %20 for most languages (or + is possible too i beleve)
精彩评论