Today I switched to WordPress 2.0.4. Forgetting about this nasty MySQL bug, I got again all “????” in my Bulgarian postings.
For my future reference, I must remember to add the following line:
$this->query(“SET NAMES UTF8”);
to the end of _function select($db)_ in _wp-includes/wp-db.php_. Sick!
Apart from that, the upgrade went smooth.
It’s eaasier to add the following two lines to the [mysqld] section of your mysql server’s my.cnf:
default_character_set = cp1251
init-connect = “SET NAMES cp1251”
True, but only in the cases when you’re in possesion of your my.cnf :).
Мда, пък и се забравя… последния път се пулих 30 минути, докато си спомня за това.