开发者

NSURLConnection : Bad url problem

It seems that the 开发者_开发问答NSURLConnection have problems with handling æ,ø,å. And the webservice I'm trying to connect to do not handle that I convert them to UTF8 chars.

Any suggestions?


If you have some special characters in you url string you might have to convert these characters to percent escapes using

- (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)encoding` 

method and use the result later when working with NSURLs

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜