开发者

Problems with UTF-8 chars (iOS, NSString)

开发者 https://www.devze.com 2023-04-12 06:15 出处:网络
when I parse XML document I get strings like that: \"večinoma son&a开发者_如何学Cmp;#269;no \" How do I replace č with correct values? Do I have to manually replace them one by one,

when I parse XML document I get strings like that: "večinoma son&a开发者_如何学Cmp;#269;no " How do I replace č with correct values? Do I have to manually replace them one by one, or is there better way.

Thanks!


They're HTML Entities, it's not to do with UTF-8. This question and it's answers might help you: HTML character decoding in Objective-C / Cocoa Touch

0

精彩评论

暂无评论...
验证码 换一张
取 消