之前平台是Mysql4.0 Big5
後來的是Mysql5.0 utf-8
在後來平台不管匯、取都是亂碼
在資料庫也有設定匯入為utf-8
後來查的結果
記得在php抬頭加上這一段
代碼: 選擇全部
$link=mysql_connect("localhost","root",$root_pass);
header('Content-Type: text/html; charset=utf-8');
不然修改也會存入亂碼
代碼: 選擇全部
$link=mysql_connect("localhost","root",$root_pass);
header('Content-Type: text/html; charset=utf-8');
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客