1
11138 2018-01-21 01:35:34 +08:00 1
echo str_replace(["%3A", "%2F", "%40"], [":", "/", "@"], rawurlencode('http://www.test.com/u/1/2/中国 english 123 -.jpg'));
|
2
autoxbc 2018-01-21 10:08:27 +08:00 1
encodeURI,注意不要和 encodeURIComponent 混淆
encodeURI('http://www.test.com/u/1/2/中国 english 123 -.jpg') |