开发者

NSXmlParser foundCharacters method is not reading words in one time?

开发者 https://www.devze.com 2023-03-09 00:47 出处:网络
NSXmlParser foundCharacters method is not reading string in one time when characters coming with special cha开发者_高级运维racters like København which is a danish word???

NSXmlParser foundCharacters method is not reading string in one time when characters coming with special cha开发者_高级运维racters like København which is a danish word???

It breaks it from ø and read it separately...


What's your question? This is documented behavior:

The parser object may send the delegate several parser:foundCharacters: messages to report the characters of an element. Because string may be only part of the total character content for the current element, you should append it to the current accumulation of characters until the element changes.

If you wish to capture the entire textual contents of a tag, you'll have to catch all these messages and join the contents in a string.

0

精彩评论

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