Weird characters on older posts (encoding problem?)
-
I have discovered that some of the older posts on my blog have weird characters in them where usually apostrophes or quotes, etc. should be. For example, won’t instead of won’t.
Now, I have researched this and found a suggestion that seemed promising, which was to remove these 2 lines from wp_config.php file:
define(‘DB_CHARSET’, ‘utf8?);
define(‘DB_COLLATE’=, “);When I did that it fixed the problem on the old posts, but now the newer posts started showing weird characters, which is even worse.
I’m guessing that when my blog was moved something changed, so now it seems posts before July 2009 have one encoding and then posts since that date have another encoding – at least that’s what I’m guessing.
So is there a way to change the encoding just for posts before certain date (and not for all of them?) or any other solution? I’m not a coding guru, but now some PHP and SQL.
I also seen this plugin: http://wordpress.org/extend/plugins/utf-8-database-converter/
but reading the comments they don’t recommend running it on WP older than 2.2, b/c apparently there are reports of it erasing posts after a certain character.
Any help would be appreciated. Thanks!
The topic ‘Weird characters on older posts (encoding problem?)’ is closed to new replies.