WordPress config & database charset
As part of upgrading to WordPress 2.7, the character encoding of some existing posts appeared suddenly broken.
Turns out that the charset specification from wp-config.php was not interpreted correctly any longer as UTF-8; changing the name from ‘utf8‘ (without dash) to ‘utf-8‘ did the trick.
Update Feb 24: my error log shows lots and lots of warnings like these:
WordPress database error Unknown character set: 'utf-8' for query SET NAMES 'utf-8' made by require, require_once, require_once, require_once, require_wp_db, require_once
The right solution seems to remove (comment) the line specifying the DB_CHARSET alltogether:
/** Database Charset to use in creating database tables. */
// define('DB_CHARSET', 'utf8');
Read more about editing wp-config (wordpress.org)…
Popularity: 26%




![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=8b655181-5cea-4979-99dd-8dd4d63d1c2b)
gemp 20:56 on January 16, 2009 Permalink |
You just saved my life (and a friendship).
Thanks