Created
May 3, 2012 17:52
-
-
Save ev3rywh3re/2587587 to your computer and use it in GitHub Desktop.
WordPress: fix bad windows-latin garbage in database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= replace(post_content,'•','-'); | |
update wp_posts | |
set post_content= replace(post_content,'–','-'); | |
update wp_posts | |
set post_content= replace(post_content,'‡','c'); | |
update wp_posts | |
set post_content= replace(post_content,'Â',' '); | |
update wp_posts | |
set post_content= replace(post_content,'',' '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment