Home > Backend Development > PHP Tutorial > Apache server solves the problem that the Chinese URL cannot be displayed normally_PHP tutorial

Apache server solves the problem that the Chinese URL cannot be displayed normally_PHP tutorial

WBOY
Release: 2016-07-13 10:54:52
Original
1086 people have browsed it

Apache server solves the problem that Chinese url cannot be displayed normally
We use a url encoding function in the php tutorial, and we can use it to solve the problem. The method is as follows.

$interest = "arts";
$homepage = "http://www.zhutiai.com";
$query = "homepage=".urlencode( $homepage );
$query .= "&interest=".urlencode( $interest );
echo $query;
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632294.htmlTechArticleapache server solves the problem that Chinese url cannot be displayed normally. We use a url encoding function in the php tutorial and use it. It can be solved, the method is as follows. ?php $interest = arts; $hom...
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