0

So I fixed my XML file and the PCDATA was indeed caused by the wrong encoding (ISO8859-1 wasn't right, see my previous question), but I still have incorrect chars using both ISO-8859-1 or UTF-8 encodings.

The problem is when I parse my file and get the chars :

- (void) parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
    NSLog(@"%@", foundCharacters);
    [self.currentNodeContent appendString:string];
}

If I have for example the "é" char, it will be transformed into "È".

What should I do ? Help ! Thanks for your answers

Community
  • 1
  • 1
Rob
  • 15,732
  • 22
  • 69
  • 107
  • Please try to formulate standalone questions. If we need to look at your previous question to get enough context for this question you'll get less help as a result. – deceze May 30 '12 at 08:38
  • Please use a hex editor (or `hexdump -C` from the command line) to find out the exact sequence of bytes being used to represent the é and then add it to your question. Note that, it might be decomposed as an e followed by the accent. – JeremyP May 30 '12 at 09:46

1 Answers1

1

Finally I got it working by using TBXML.

Rob
  • 15,732
  • 22
  • 69
  • 107