webview加载含有中文的url显示空白
in 知识 on Object-c
// 在类目中添加这个方法
- (NSString *)URLEncodeString {
NSCharacterSet *set = [NSCharacterSet URLQueryAllowedCharacterSet];
NSString *encodedString = [self stringByAddingPercentEncodingWithAllowedCharacters:set];
return encodedString;
}