On my blog UTF-8 works great on posts and comments. However I have a function/form which registers some info directly in WordPress as posts. Unfortunately the special characters like these: é, ë, ï are not saved as UTF-8 in database but something like this: Ã©, Ã«, Ã¯
I found on this forum the wp-db.php hack (http://wordpress.org/support/topic/japanese-characters-not-displaying-right?replies=4) but this not apply anymore on WordPress 3.0.
I want to know how I can integrate
$this->query ("SET NAMES 'utf8'");
into my query function:
$postsql = "insert into $wpdb->posts (blah blah)"; $wpdb->query($postsql);
Anybody can help me with that?