解决utf-8乱码问题

mysql数据库使用mysql4,数据库建立使用utf8_general_ci 。

修改wp-includes/wp-db.php,找到如下行:

                $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword);

在后面加入一行:

                $this->query(”SET NAMES ‘utf8′”);

ok,we got it!

One Comment

  1. dawnh CHINA
    Posted May 10, 2006 at 4:05 pm | Permalink

    this is a test

Post a Comment

Your email is never published nor shared.