开发者

Android SAXParser breaks at apostrophe-like character

I'm having an issue with the SAXParser in Android.

In the RSS feed I'm trying to parse there is a ’ (this is not a standar开发者_运维百科d apostrophe, but the one that is slanted, the opposite to a backtick) character within a CDATA section, regardless of this I'm getting a parser error:

At line 212, column 26: not well-formed (invalid token)


May be a bug in the library, of course, but first check if the encoding of the XML allows this symbol to be there unencoded (i.e. I'd expect it to be multibyte for UTF-8). The parser may be right.

P.S. This symbol? This one should not be in plain text.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜