I recently exported a MySQL database for a WordPress blog from GoDaddy and uploaded it to MediaTemple. It was a pretty straight-forward process, but I noticed a few days after the import that many weird symbols start cropping up such as
â€
“
•
If this happens to you, fear not! You can simply access your MyPHPAdmin panel, click on the SQL tab, and run a very simple find and replace command. Here are the commands I used for my WordPress site:
update wp_posts set post_content = replace(post_content,’•’,'–’)
update wp_posts set post_content = replace(post_content,’“’,'‒’)
update wp_posts set post_content = replace(post_content,’‒,'”’)
The command can also be expressed more generically as the following formula:
update [table_name] set [field_name] = replace([field_name],’[string_to_find]‘,’[string_to_replace]‘);


Comments on this entry are closed.