摘要:
$encode = mb_detect_encoding($string, array("ASCII",'UTF-8′,"GB2312′,"GBK",'BIG5′)); // 查看string字符串的编码方式。//echo $encode; //如果不是需要的编码类型,则将其进行转码if($enco... 阅读全文
posted @ 2014-06-05 10:47
xien
阅读(1092)
评论(0)
推荐(0)
摘要:
需要用Javascript将文字转换成php中的urlencode编码时js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、传递参数时需要使用encod... 阅读全文
posted @ 2014-06-05 10:39
xien
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号