//需要转换成 NSUTF8StringEncoding
NSString *str1 =@"鞋";
NSString *str = [NSStringstringWithFormat:@"http://lanrenapp.sinaapp.com/iphone/search/goodslist?start=0&num=20&keyword=%@&version=1.0",[str1stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
//将ascll转换成汉字
NSLog(@"%@",[urlStr stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]);