How to fix encoding issues ? (NSString / XMLParsin

2019-08-31 03:50发布

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条回答
Melony?
2楼-- · 2019-08-31 04:38

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

查看更多
登录 后发表回答