首页 > iOS数据JSON话报错

iOS数据JSON话报错

服务端返回的data,能转成正常的string,但使用系统自带的json转化,报错了。

报错信息:
Error Domain=NSCocoaErrorDomain Code=3840 "Unable to convert hex escape sequence (no high character) to UTF8-encoded character." UserInfo={NSDebugDescription=Unable to convert hex escape sequence (no high character) to UTF8-encoded character.}

使用的网络请求库是AFNetworking。


请参考:
AFNetworking 错误信息:NSCocoaErrorDomain Code=3840


貌似字符编码问题


应该是服务器那边的传输的字符问题,请查询下服务端推送的data数据
stackoverflow上有一个类似的问题:Unable to convert hex escape sequence (no high character) to UTF8-encoded character

【热门文章】
【热门文章】