Home  >  Article  >  Backend Development  >  Two ways to solve the problem of Chinese GBK garbled URLs in PHP_PHP tutorial

Two ways to solve the problem of Chinese GBK garbled URLs in PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:29:01742browse

Under normal circumstances, URLs are processed by UrlEncode, urlencode(), urldecode();

You can also use iconv('utf-8', 'gb2312', $ret) to convert the received data.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/779574.htmlTechArticleUsually UrlEncode is performed on the URL, urlencode(), urldecode(); you can also use iconv('utf -8', 'gb2312', $ret) perform encoding conversion on the received data. ...
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