Home > Backend Development > PHP Tutorial > URL后缀的参数传递发生乱码!解决办法

URL后缀的参数传递发生乱码!解决办法

WBOY
Release: 2016-06-13 10:01:50
Original
980 people have browsed it

URL后缀的参数传递发生乱码!!!
http://127.0.0.1/promotion3/download.php?filename=楓橋夜泊.zip

filename=楓橋夜泊.zip从页面A传递到页面B,但是在B中接收filename时就发生了乱码,楓橋夜泊.zip变成了楓濥??濮zip,而在URL后缀上就能正常显示“楓橋夜泊.zip”(如上),究竟是什么原因呢,求大家帮帮我!
(注:A,B页面我都设置了编码格式为:UTF8)

------解决方案--------------------
用urlencode
urldecode
转换

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template