In transferring a WP site from one domain to another (export, import, etc.), some characters were acting up. Smart quotes (e.g. — ” — and — ” — instead of just — ” — between the dashes to show what I mean–ha, I just looked and they don’t show up here!) and em-dashes (” — ” and not just a dash ” – “) were putting odd code into the new site. In WP, I could just see these little diamonds with a question mark in them, but couldn’t use search and replace because I couldn’t copy and paste the diamond. Solution: get down and dirty with PHP MyAdmin to edit your SQL database. To those I just lost in translation, you’re free to leave the room now.

Here’s the code to put into an SQL query:

[mysql]UPDATE wp_posts SET post_content = REPLACE (post_content, ‘—’, ‘-‘)[/mysql]

If you don’t know what you’re doing, please don’t even go near this. It’s a jungle in there. :-)