URL中汉字转码

7.0+

[string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLPathAllowedCharacterSet]];

7.0-

[string stringByAddingPercentEscapesUsingEncoding:NSUTF8Encoding];


你可能感兴趣的:(URL中汉字转码)