How to fix encoding issues ? (NSString / XMLParsing)

淺唱寂寞╮ 提交于 2019-12-12 05:29:54

问题


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.



来源:https://stackoverflow.com/questions/10789547/how-to-fix-encoding-issues-nsstring-xmlparsing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!