当服务器给的图片地址还有中文,怎么办?

NSString *orginImageUrl = @"http://119.145.140.214:8080//images/studio/1f1c0158f0b526d50000/1482390731331主图.jpg";

NSString * imageUrl = [orginImageUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

end!

posted @ 2016-12-26 18:08  御龙家园  阅读(168)  评论(0编辑  收藏  举报