简体   繁体   English

JSON回复编码问题

[英]JSON repsonse encoding problems

I have ASIHTTPRequest with JSON response. 我有带有JSON响应的ASIHTTPRequest I use SBJsonParser for JSON parsing, I need parse some strings from response. 我使用SBJsonParser进行JSON解析,我需要从响应中解析一些字符串。 But I have problem with Russian symbols, I receive russian strings like: –†–Њ—Б—Б–Є—П 但是我对俄语符号有–†–Њ—Б—Б–Є—П ,我收到了俄语字符串,例如: –†–Њ—Б—Б–Є—П

Any ideas? 有任何想法吗?

Have a look into AFNetworking and Apple's NSJSONSerializer. 看一下AFNetworking和Apple的NSJSONSerializer。 Even the developer of ASIHTTPRequest does not longer recommend using this framework. 甚至ASIHTTPRequest的开发人员也不再建议使用此框架。 There's great support for encoding issues in AFNetworking, and it's widely used so I'm pretty sure your bug doesn't exist there. AFNetworking对编码问题有很好的支持,它得到了广泛的使用,因此,我很确定您的错误在那里不存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM