/** 特殊符号转换 */ -(NSString * )urlEncle:(NSString *)def { NSString *outputStr = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,(CFStringRef)def,NULL, (CFStringRef)@"!*‘();:@&=+$,/?%#[]",kCFStringEncodingUTF8)); return outputStr; }
时间: 2024-10-12 00:33:04