php post和get IE乱码解决
$Title=(isset($_POST['Title']))?$_POST['Title']:'';if($Title==''){
$Title=(isset($_GET['Title']))?$_GET['Title']:'';
if($Title!=''){
$encode = mb_detect_encoding($Title, array("ASCII","UTF-8","GB2312","GBK","BIG5"));
if($encode!="UTF-8"){
$Title=iconv("gb2312","UTF-8",$Title);
}
}
}
页:
[1]