msgbartop
一個對sm難捨難離的人
msgbarbottom

18 四月 07 wordpress 中使用sql4.1的亂碼問題解決方法

原本是相安無事的,但網各商更新了sql之後正常的中文數據會變成亂碼,在mysql server後台設定成為utf-8 characters,之後再修改
wp-includes/wp-db.php,在 $this->select($dbname); 這一行前面加上 mysql_query(”SET NAMES ‘UTF8′”); 就可以正常顯示中文了。

Tags: , ,



Leave a Comment

You must be logged in to post a comment.