开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜