首页 > 移动平台 > 详细

Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.

时间:2014-02-19 04:07:13      阅读:1499      评论:0      收藏:0      [点我收藏+]

ASIHTTP解析GBK的编码有误,在某些设备会出现此类错误,直接返回不了数据:,在输出控制本里返回如下

Incorrect NSStringEncoding value 0x0000 detected.

Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.

bubuko.com,布布扣

 

之前我做的时候编码用的是NSUTF8SringEncoding,改为CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000)编码即可。

Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.

原文:http://www.cnblogs.com/wuxiufang/p/3554365.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!