ios 字符串编码
2019-12-06 本文已影响0人
天上飞的狒狒
NSString *codeSre = @"需要编码的字符串";
NSString*hString = [codeSre stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *codeSre = @"需要编码的字符串";
NSString*hString = [codeSre stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];