代码: NSString* encodeUrl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

如图: