How to fix encoding issues ? (NSString / XMLParsin

2019-08-31 03:47发布

问题:

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

回答1:

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