我在解析JSON时遇到了这个错误:
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (Unable to convert data to string around character 73053.) UserInfo=0x1d5d8250 {NSDebugDescription=Unable to convert data to string around character 73053.}
有什么建议可以解决这个问题吗?
添加如错误报告所述,解析器无法通过JSON响应中位置73053的字符,该字符为“ø”。据我所知,像Ø,Å,Æ等字符不应该是json解析器的问题吗?