URL的参数中出现中文用这个方法转换在拼接即可NSString *str = @"百思";
NSString *urlStr = [str stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
转载于:https://www.cnblogs.com/ios988/p/5333879.html
URL的参数中出现中文用这个方法转换在拼接即可NSString *str = @"百思";
NSString *urlStr = [str stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
转载于:https://www.cnblogs.com/ios988/p/5333879.html