Home >Backend Development >PHP Tutorial >PHP解决URL中文GBK乱码问题的两种方法_PHP

PHP解决URL中文GBK乱码问题的两种方法_PHP

WBOY
WBOYOriginal
2016-06-01 11:52:40792browse

一般情况下对URL进行UrlEncode 处理 , urlencode(),urldecode();

也可以通过iconv('utf-8', 'gb2312', $ret)对接收到的数据进行编码转换。

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