首页 > 后端开发 > php教程 > 关于URL解码

关于URL解码

WBOY
发布: 2016-06-23 13:54:35
原创
1274 人浏览过

itemId=37877717770&schemaName=uz.item&contentId=&coverPic=0&picUrls=http%3A%2F%2Fimg02.taobaocdn.com%2Fbao%2Fuploaded%2Fi1%2FT1SuCSFU0aXXXXXXXX_!!0-item_pic.jpg%2Chttp%3A%2F%2Fimg03.taobaocdn.com%2Fbao%2Fuploaded%2Fi1%2F1884285954%2FT26vnMXIXaXXXXXXXX_!!1884285954.jpg%2Chttp%3A%2F%2Fimg02.taobaocdn.com%2Fbao%2Fuploaded%2Fi3%2F1884285954%2FT2M6zZXBRXXXXXXXXX_!!1884285954.jpg%2Chttp%3A%2F%2Fimg02.taobaocdn.com%2Fbao%2Fuploaded%2Fi1%2F1884285954%2FT2anU6XTdXXXXXXXXX_!!1884285954.jpg%2Chttp%3A%2F%2Fimg04.taobaocdn.com%2Fbao%2Fuploaded%2Fi2%2F1884285954%2FT2FGtqX3RXXXXXXXXX_!!1884285954.jpg&tagNames=%25E4%25B8%259D%25E8%25A2%259C%25E7%25A3%258A&className=%25E5%25A5%25B3%25E8%25A3%2585&classId=10041379&title=%25E8%25AF%2597%25E6%259F%2594%25E6%2598%25A5%25E5%25A4%258F%25E5%258C%2585%25E8%258A%25AF%25E4%25B8%259D%25E6%2589%2593%25E5%25BA%2595%25E8%25A2%259C%2520%25E4%25B8%259D%25E8%25A2%259C%25E5%25A5%25B3%2520%25E8%25B6%2585%25E8%2596%2584%25E9%2598%25B2%25E5%258B%25BE%25E4%25B8%259D%25E8%25BF%259E%25E8%25A3%25A4%25E8%25A2%259C%2520%25E6%2580%25A7%25E6%2584%259F%25E5%25A5%25B3%25E8%25A2%259C%25E5%25AD%2590%2520%25E5%258C%2585%25E9%2582%25AE&price=18&comments=%25E5%259C%25A8
以上url路径中中文字符被编码了,请问怎么解码还原成中文字符呢


回复讨论(解决方案)

urldecode(urldecode($s))
做两次 url 解码

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板