NSXMLParser trims umlauts (ä, ö, ü)

I am using NSXMLParser to parse server XML documents. They are encoded as UTF8. My problem is that NSXMLParser breaks at the umlauts (ä, ö, ü) and launches a new element.

For example:

Lösen - NSXMLParser ---> L + ösen

How to get NSXMLParser to read my umlaut words completely, like any other word.

Hello

+3
source share
3 answers

Sorry, but based on your comment on the original question (foundCharacters, receiving text in two calls), the parser behaves fine. See the Discussion Section for the parser: foundCharacters: method, listed below:

: foundCharacters: . , , .

, , .

+8

foundCharacters: , , didEndElement.

+3

:

  • (void) parser: (NSXMLParser *) : (NSString *)

, , didEndElement, .

+1

Source: https://habr.com/ru/post/1711554/


All Articles