开发者

how to parse Turkish charactern in an xml response on iOS

I am getting some Turkish characters in an xml response. That causes some exceptions.

Can anybody t开发者_JAVA技巧ell me how can handle this?


Try this. Convert it into UTF8

NSData *data = [myString dataUsingEncoding:NSUTF8StringEncoding];  

Then parse with this data...

NSXMLParser *parser = [[NSXMLParser alloc] initWithData:data];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜