這問題好像跟這一篇
http://forum.lifetype.org.tw/index.php?topic=47.0&start=15&postdays=0&postorder=asc&highlight= 有關。
請問你除了 php 升級到 5.x, apache 升級到 2.x,是不是 mysql 也從 4.0.x 升級到 4.1.x?
你原本的 4.0 的 table encoding 是 latin1, big5 還是 utf-8? Pest patch 了一個自動判斷 DB 編碼的機制,他特別強調這個地方有可能會出錯。
假設你的 DB 原本在 4.0 時的編碼是 latin1. 請你搜尋
class/database/adodb/drivers/adodb-mysql.inc.php 裡面把
/** hack to adodb **/
.......
......
/** end of hack **/
換成
mysql_query("SET NAMES latin1", $this->_connectionID);
或是
mysql_query("SET NAMES big5", $this->_connectionID);
試試!測試前請先 restart mysql 一次。
Mark