為解決 Wordpres 亂碼這個問題, 必須要:
- MySQL 要設定資料庫欄位的「校對」至 "utf8-unicode-ci";
- 修改wp-includes/wp-db.php內的資料連線設定, 修改方法如下:
$this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword);
//加上這行
$this->query("SET NAMES 'utf8'");
為解決 Wordpres 亂碼這個問題, 必須要:
$this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword);
//加上這行
$this->query("SET NAMES 'utf8'");
I am amazed with it. It is a good thing for my research. Thanks. ^_^
It’s really good if this information can help you.
Приветствую вас http://www.constant-tsai.com