I have this xml feed in Chinese, which NSXLParsers is unable to parse. It gives error 31 while parsing.
error 31 occur due to Document encoding is unknown.
I tried UTF-8 and ascii encodings to convert string rendered via
[NSString stringwithContentsOfURL:@"http://news.baidu.com/n?cmd=4&class=finannews&tn=rss"]
to corresponding format.
Can any body shed some light on how to parse XML feeds written in another languages.
Thanx in advance
Try to debugg using
It will help to find whether the problem is with the xml or the encoding method
The answer is the first line of the feed
Then read about gb2312
Since the file is encoded in GB2312, you should provide an encoding with