开发者

NSURLConnection : Bad url problem

开发者 https://www.devze.com 2022-12-19 14:43 出处:网络
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.

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

精彩评论

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