§ character kills nsxmlparser
I've got an nsxmlparser. It works well enough, though I had to convert a开发者_运维知识库ll the special characters coming into it into their coded equivalents: & had to be &, " had to be ", and so on. However, § (§) kills it at parser:didStartElement.
Do you know a way around this? Naturally, I need the § characters to show up.
There's a workable answer in the comments to the question:
"Have the server send "§"
in place of "§"
and then just run the following line on the clientside:
labelText = [labelText stringByReplacingOccurrencesOfString:@"§" withString:@"§"];
I'd hope there's a more graceful way, though
精彩评论