标签:
// 之前的在使用会报警告 urlStr是请求路径
NSString *decodeStr = [urlStr stringByRemovingPercentEncoding];//utf-8解码
NSString *encodeStr = [decodeStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"`#%^{}\"[]|\\<> "].invertedSet];
标签:
原文地址:http://www.cnblogs.com/LVanswer/p/5576546.html