关于URL解码

WBOY
WBOY원래의
2016-06-23 13:54:351277검색

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 解码

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.