So of course the UTF-8 conversion could not go off without a hitch. It seems that comments are sometimes not converted correctly, although everything else is. Normally, find and replace in MySQL databases is frowned upon, but because the gibberish is so unique (sorry to those who type entirely in gibberish), it is a prime candidate for F&R. Here are some of the queries I used:
UPDATE wp_comments SET comment_content = REPLACE (comment_content,’“’,'”‘)
UPDATE wp_comments SET comment_content = REPLACE (comment_content,’‒,'”‘)
UPDATE wp_comments SET comment_content = REPLACE (comment_content,’…’,'…’)
UPDATE wp_comments SET comment_content = REPLACE (comment_content,’’’,'\”)
Note in the last one how the apostrophe has to be escaped with a backslash, or it will throw an error. A handful of comments had heavy conversion errors, and I had to cut them. My apologies, although I couldn’t read them to begin with…
Related posts:
- Updating Obsolete URLs in 10 Easy Steps
- Changes to Spoiler Tags
- Dropping Eyeshield 21
Find And Replace
So of course the UTF-8 conversion could not go off without a hitch. It seems that comments are sometimes not converted correctly, although everything else is. Normally, find and replace in MySQL databases is frowned upon, but because the gibberish is so unique (sorry to those who type entirely in gibberish), it is a prime candidate for F&R. Here are some of the queries I used:
Note in the last one how the apostrophe has to be escaped with a backslash, or it will throw an error. A handful of comments had heavy conversion errors, and I had to cut them. My apologies, although I couldn’t read them to begin with…
Related posts: