Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-13 10:29:01
Original
814 people have browsed it

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. ...
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