PHP——json_encode 中文亂碼的解決方法

1.亂碼截圖: 2.php文件 <?php header("Content-type:text/json;charset=utf8"); //定義參數 //表單驗證 if(empty($id)){ //鏈接數據庫 $con = mysql_connect("localhost","root","root"); //設置數據庫字符集 mysql_query("SET
相關文章
相關標籤/搜索