NSString *codeSre = @"需要编码的字符串";
NSString*hString = [codeSre stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *codeSre = @"需要编码的字符串";
NSString*hString = [codeSre stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
本文标题:ios 字符串编码
本文链接:https://www.haomeiwen.com/subject/xnjegctx.html
网友评论