标签:style blog gbk str ring class ken code string
//UTF8转GBK
NSString *roadName = @“你好”; NSStringEncoding gbkEncoding=CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000); NSData*data = [roadName dataUsingEncoding: gbkEncoding];
标签:style blog gbk str ring class ken code string
原文地址:http://www.cnblogs.com/sunmair/p/7275048.html