// 之前的在使用会报警告 urlStr是请求路径
NSString *decodeStr = [urlStr stringByRemovingPercentEncoding];//utf-8解码
NSString *encodeStr = [decodeStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"`#%^{}\"[]|\\<> "].invertedSet];
时间: 2024-11-12 13:09:02