2018-05-30

NSURL 中文转码
NSString *encodedString = (NSString )CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,(CFStringRef)str,(CFStringRef)@"!$&'()+,-./:;=?@_~%#[]",NULL,kCFStringEncodingUTF8));

你可能感兴趣的:(2018-05-30)