UTF-8 encoding jq's get parameter is garbled in utf-8 and solves the problem in php version

WBOY
Release: 2016-07-29 08:38:30
Original
1065 people have browsed it





Untitled Document
<script> <br>document.write(escape("哈哈")+"<br>"); <br>document.write(unescape("%u54C8%u54C8")+"<br>"); <br>document.write(encodeURIComponent("哈哈")+"<br>"); <br>document.write(decodeURIComponent("%E5%93%88%E5%93%88")+"<br>"); <br></script>


echo urldecode("%E5%93%88%E5%93%88");
echo "
";
echo rawurldecode("%E5%93%88%E5%93%88");
echo "";
echo utf8_decode("%E5%93%88%E5%93%88");
echo "";
echo "%E5%93%88%E5%93%88";
echo "";
echo $_GET['act'];
echo "";
echo urlencode($_GET['act']);
?>

以上就介绍了utf-8编码 jq的get传参数在utf-8中乱码问题的解决php版,包括了utf-8编码方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

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