stringByAddingPercentEscapesUsingEncoding错误字符串

时间:2013-06-17 12:58:16

标签: ios objective-c nsurl

我正在发送GET个请求,我的网址是

http://myurl.com/addpla?name=JJ Burger &category=Delicatessen and Other &location=Sao jose do Rio Preto

(我确实使用了NSLog,这是正确的)

但是

之后
NSString *encodedURL = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

网址是:

http://myurl.com/addpla?name=JJ2urger0X1.8A1301528AP-685&category=Delicatessen0x1.8ac90146a39e1p-698nd2427076260ther0X1.442030000206P-1018&location=Sao1455040047316337024se0o2io¢e

0 个答案:

没有答案