NSString*unescaped =@"http=中文";
NSString*escapedString = [unescapedstringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSetURLHostAllowedCharacterSet]];
NSLog(@"escapedString: %@", escapedString);
NSString*unescaped =@"http=中文";
NSString*escapedString = [unescapedstringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSetURLHostAllowedCharacterSet]];
NSLog(@"escapedString: %@", escapedString);
本文标题:iOS9 URL地址中文转码
本文链接:https://www.haomeiwen.com/subject/hwyxuttx.html
网友评论