1.首先要把資料庫內的資料"校對"改成UTF8.
2.資料庫連線請參考下面.
db\mysql4.php
找到 (沒改過時應該在48行)
代碼:
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
下方插入
代碼:
@mysql_query("SET NAMES utf8",$this->db_connect_id);
沒有留言:
張貼留言