手机
当前位置:查字典教程网 >编程开发 >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版】相关文章:

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

PHP传参之传值与传址的区别

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

PHP浮点数知识

在PHP中使用灵巧的体系结构

用PHP动态创建Flash动画

PHP中路径问题的解决方案

PHP的Socket通信之UDP通信实例

PHP4与PHP3中一个不兼容问题的解决方法

PHP+MYSQL中文乱码问题

精品推荐
分类导航