首页  >  文章  >  后端开发  >  jq的get传参数在utf-8中乱码问题的解决php版_PHP教程

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

WBOY
WBOY原创
2016-07-21 15:51:18912浏览

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

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...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn