My ramblings on Wordpress, the web and marketing in general.

Getting rid of funny characters

(Monday, December 14th, 2009)

Funny Latin characters got pasted into some of the posts, no this wasn’t an straight forward UTF-8 / Latin encoding issue.
This is how I got rid of them.
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,’–’,’-’) ;
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,’‘’,’\”) ;
update wp_posts
set post_content= [...]

10 things to remember when moving a Wordpress website

Tuesday, October 6th, 2009

My checklist when moving a Wordpress site from a development to a live environment (new domain). The files you need to copy and DB changes you need to make.

Follow Me on Twitter