大神,問一問設置了utf-8頁面還是亂碼了,怎么辦
config.php
<?php require_once('config.php'); //連庫 $con?=?mysql_connect(HOST,USERNAME,PASSWORD); //選庫 if(!mysql_select_db('info')){ echo?mysql_error(); } //字符集 if(mysql_query('set?names?utf8')){ echo?mysql_error(); } ?>
add頁面也設置 <html?xmlns="http://www.w3org/1999/xhtml;charset=utf-8"?>
最后顯示
2016-10-08
試試把php文件保存為utf8 格式
2016-09-28
寫錯了,得是這樣<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />