0

I parsed an XML file containing UTF8/latin characters (é, â, è, î, etc...).

At first I tried to fix this with a function replacing the wrong chars. But I'm having a problem with à, replaced by ". And as I don't want to replace all the " of my file, I have to find another way to fix it.

Any idea to fix this ?

Thanks a lot for your advices

Rob
  • 15,732
  • 22
  • 69
  • 107
  • It results `"` when you're `NSLogging` or when you're trying to set it in a NSString? I ask because sometimes, when I'm `NSLogging` special characters, it result something like: "√2", and when I set it to a NSString, it becomes normal. –  May 28 '12 at 20:34
  • No it's while setting it in the NSString. But after reflexion is think it's not because of my program but rather of the XML file. – Rob May 28 '12 at 21:26
  • Is your XML ``? –  May 28 '12 at 21:36
  • No it's ``, so I guess here is the error. I'm going to tell it to the webmaster (it's not me that manages the XML file I'm working on). – Rob May 28 '12 at 22:12
  • 1
    Well, so here is the error. Tell to the webmaster change it, and your code will work with special characters. :-) –  May 29 '12 at 00:53

1 Answers1

0

To finally answer this question, it worked using TBXML. But only with UTF-8 encoding, not ISO-8859-1.

Rob
  • 15,732
  • 22
  • 69
  • 107