hi all , i just found that swift use urllib.quote and urllib.unquote to process request url.<div><br></div><div>but in php urlencode or rawurlencode process result is very different from python's</div><div><br></div><div>
for example:</div><div><br></div><div>org:  <a href="http://www.brighthost.com/test">http://www.brighthost.com/test</a> space~.html</div><div><br></div><div>php urlencode:  http%3A%2F%<a href="http://2Fwww.brighthost.com">2Fwww.brighthost.com</a>%2Ftest+space%7E.html</div>
<div><br></div><div>php rawurlencode: http%3A%2F%<a href="http://2Fwww.brighthost.com">2Fwww.brighthost.com</a>%2Ftest%20space~.html</div><div><br></div><div>python quote:  http%3A//<a href="http://www.brighthost.com/test%20space%7E.html">www.brighthost.com/test%20space%7E.html</a></div>
<div><br></div><div><br></div><div>so , if you want to send a request to swift, you'd better write a encode funtion by yourself......</div><div><br></div><div><br></div><div><br></div>