Convert UTF-8 encoded NSData to NSString,转载自stackoverflow
If the data is not null-terminated, you should use -initWithData:encoding:
NSString* newStr = [[NSString alloc] initWithData:theData encoding:NSUTF8StringEncoding];
If the data is null-terminated,...
原创
2014-07-07 10:39:53 ·
137 阅读 ·
0 评论