[英]iOS Unicode Encoding
I am getting this kind of data ElbowWristHand_DeQuervian\\U00e2\\U0080\\U0099s Tenosynovitis through a web service, But actually the content is "ElbowWristHand_DeQuervian's". 我通过Web服务获取此类数据ElbowWristHand_DeQuervian \\ U00e2 \\ U0080 \\ U0099s腱鞘炎,但实际上内容是“ ElbowWristHand_DeQuervian的”。 I have followed all the methods mentioned in the following link:
我遵循以下链接中提到的所有方法:
Using Objective C/Cocoa to unescape unicode characters, ie \ሴ 使用Objective C / Cocoa取消转义Unicode字符,即\\ u1234
but still i am unable to convert the unicode characters to the proper string. 但我仍然无法将Unicode字符转换为正确的字符串。 Please suggest.
请提出建议。
Thanks 谢谢
在初始化字符串时,我们使用unicode字符串编码-
NSString *dataString = [[NSString alloc] initWithData:recievedData usingEncoding:NSUnicodeStringEncoding]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.