Recently I displayed my blog feed on other pages of my site. The single quotes and apostrophes are changing into some strange characters in the posts. Most of all those web pages are not validating for W3C compliancy. Posts appear fine on the blog pages and rss feed, but when this feed is displayed on non-wordpress pages, These strange characters were appearing.

These quotes and apostrophes are displaying as:

* Empty squares
* Diamond shaped characters with question mark in it

So I did some digging on Google. I found this useful link on character set.

I changed my character set on my web pages from:

meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

To:

meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

Voila! All these weird characters gone in the posts of the wordpress feeds.

Author: Radhika (c)
http://www.webmasters-central.com/




Related Posts

  • No Related Posts Found