首頁 >後端開發 >php教程 >jq的get传参数在utf-8中乱码问题的解决php版_PHP

jq的get传参数在utf-8中乱码问题的解决php版_PHP

WBOY
WBOY原創
2016-06-01 12:24:32857瀏覽

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn