Fixing Entries

Tuesday, June 3rd, 2008 | Quickie, WordPress |

A recent visitor to the CB pointed out a problem on some of my older entries.  It's something I was expecting to have to fix but got sidetracked and never got around to.  Basically with the upgrade to WordPress 2.5.x, there are a couple of new settings in the wp_config.php file which have WordPress to use UTF-8 character encoding to better handle non-English langauges/characters.  However as older versions of WordPress automatically converted standard quotes/astrophes to their fancy/curly versions and those fancy versions are dependent upon which character encoding scheme they are written in.  Since I wasn't sure how many entries I had that are affected by this and I wanted to leave the UTF-8 encoding enabled; I ran this SQL query to fix at least some of the problems: UPDATE wp_posts SET post_content = REPLACE(post_content,''','\'') WHERE post_content LIKE '%'%';

There are probably other characters I need to fix yet, so if you happen to see something like hieroglyphics on this site or other gibberish, let me know what entries you found it on so I can fix them.  And my thanks to Lynsey for prompting me to fix these entries.

Tags: , ,

Search

Change We Can Believe In | Barack Obama for President

Recent Comments

  • FineTexan: I love Dannon coffee yogurt! My favorite way to eat it is...
  • Laura: I absolutely love coffee yogurt. I am addicted, I have been...
  • Rachel: Doris, I had the same problem! I absolutely loved the Dannon...
  • ouini: The youth co-star was a better character / actor than I was...
  • Dolores Beck: Coffee Yogurt from Dannon is something special. I also...

Now Reading

Secret Societies of the Middle Ages: The Assassins, the Templars
Recent Books
Valor’s Choice I’d Tell You I Love You, But Then I’d Have to Kill You Halfway to the Grave
Future Reads
In the Company of Angels The Cradle will Fall Flightless Falcon

View full Library

Referrals

Text Link Ads