NSCharacterSet *encode_set= [NSCharacterSet URLQueryAllowedCharacterSet];
NSString *urlString_encode = [photoStr stringByAddingPercentEncodingWithAllowedCharacters:encode_set];
NSURL*url = [NSURLURLWithString:urlString_encode];
NSCharacterSet *encode_set= [NSCharacterSet URLQueryAllowedCharacterSet];
NSString *urlString_encode = [photoStr stringByAddingPercentEncodingWithAllowedCharacters:encode_set];
NSURL*url = [NSURLURLWithString:urlString_encode];
本文标题:URL中包含中文怎么解析
本文链接:https://www.haomeiwen.com/subject/nrqfmftx.html
网友评论