Home >Backend Development >PHP Tutorial >Solution to the garbled problem of jq's get parameters in utf-8 PHP version_PHP tutorial

Solution to the garbled problem of jq's get parameters in utf-8 PHP version_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:51:18945browse





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><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']);
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/319173.htmlTechArticle!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" htmlxmlns="http://www.w3.org/1999/xhtml" head metahttp-equiv="Conten...
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