iOS9 URL地址中文转码
2016-10-19 本文已影响0人
kaka0203x
NSString*unescaped =@"http=中文";
NSString*escapedString = [unescapedstringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSetURLHostAllowedCharacterSet]];
NSLog(@"escapedString: %@", escapedString);