jq的get传参数在utf-8中乱码问题的解决php版_php教程-查字典教程网
jq的get传参数在utf-8中乱码问题的解决php版
jq的get传参数在utf-8中乱码问题的解决php版
发布时间:2016-12-29 来源:查字典编辑
摘要:UntitledDocumentdocument.write(escape("哈哈")+"");document.write(unescap...

<!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="Content-Type"content="text/html;charset=utf-8"/>

<title>UntitledDocument</title>

<script>

document.write(escape("哈哈")+"<br>");

document.write(unescape("%u54C8%u54C8")+"<br>");

document.write(encodeURIComponent("哈哈")+"<br>");

document.write(decodeURIComponent("%E5%93%88%E5%93%88")+"<br>");

</script>

</head>

<body>

<?php

echourldecode("%E5%93%88%E5%93%88");

echo"<br>";

echorawurldecode("%E5%93%88%E5%93%88");

echo"<br/>";

echoutf8_decode("%E5%93%88%E5%93%88");

echo"<br/>";

echo"%E5%93%88%E5%93%88";

echo"<br/>";

echo$_GET['act'];

echo"<br/>";

echourlencode($_GET['act']);

?>

</body>

</html>

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新php教程学习
    热门php教程学习
    编程开发子分类