Home  >  Article  >  Backend Development  >  关于URL解码解决办法

关于URL解码解决办法

WBOY
WBOYOriginal
2016-06-13 12:01:301700browse

关于URL解码
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 解码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn