php header('Content-Type:text/html;charset=GB2312');//防止乱码 <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> $temp= $_GET['cate']; $temp_1 = iconv("UTF-8", "GB2312", $temp); echo $temp_1; $db->query("SET NAMES GBK");