Home > Backend Development > PHP Tutorial > url过码后,php程序获取参数出现乱码,该怎么解决

url过码后,php程序获取参数出现乱码,该怎么解决

WBOY
Release: 2016-06-13 12:38:43
Original
949 people have browsed it

url过码后,php程序获取参数出现乱码
这样一个url
http://localhost/index.php?app=search&keyword=%D0%DD%CF%D0%BF%E3
红色部份是中文, 经过编码的,效果等同于js中的encodeURI,但在php $_GET['keyword']获得后却是乱码这样的,不知道该怎么样解决

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