且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编码的nsdata utf8 json,在iOS中带有重音字符

更新时间:2023-11-27 21:14:04

您的代码没有问题,因为\ Ufffd是Ã而不是è的unicode.表示您的服务器向您返回了错误的值. è的正确unicode是\ U00e8,您可以在此处找到它,并找到它. 此处.我希望这能解决您的问题.

There is no problem with your code because \Ufffd is unicode for � and not for è. Means your server is returning you the wrong value. the correct unicode for è is \U00e8 you can find it here, and for � find here. I hope this will solve your problem.