手机
当前位置:查字典教程网 >编程开发 >php教程 >jq的get传参数在utf-8中乱码问题的解决php版
jq的get传参数在utf-8中乱码问题的解决php版
摘要: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>

【jq的get传参数在utf-8中乱码问题的解决php版】相关文章:

Oracle 常见问题解答

PHP浮点数知识

一个可查询所有表的“通用”查询分页类

PHP的Socket通信之UDP通信实例

十天学会php之第七天

一个php作的文本留言本的例子(三)

PHP file_get_contents函数读取远程数据超时的解决方法

PHP的伪随机数与真随机数详解

使用PHP维护文件系统

PHP+MYSQL的文章管理系统(二)

精品推荐
分类导航