特殊转义字符的处理

处理接口里不支持的转义特殊字符:

    NSCharacterSet *URLCombinedCharacterSet = [[NSCharacterSet characterSetWithCharactersInString:@"\"#%/,:<>?@[\\]^`{|}"]invertedSet];

 

    NSString *newsignStr = [signStr stringByAddingPercentEncodingWithAllowedCharacters:URLCombinedCharacterSet];

posted @ 2017-11-10 14:56  温水青蛙。  阅读(324)  评论(0)    收藏  举报