| 日 | 一 | 二 | 三 | 四 | 五 | 六 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 |
WordPress tweaks for MySQL 4.1+ to support different languages
to add support to MySQL 4.1 database with language not set to UTF-8, one must add the following to the wp-includes/wp-db.php file, in function wpdb, at the end:
@mysql_query(’SET NAMES gb2312;’, $this->dbh);
@mysql_query(’SET collation_connection = \’gb2312_chinese_ci\’;', $this->dbh);
Replace “gb2312″ and “gb2312_chinese_ci” to your appropriate settings.
login to post comments

Recent comments