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

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

WBOY
WBOYOriginal
2016-06-13 12:38:43826browse

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

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