RSS, funky characters/encoding and wptexturize()

webmaestro
Sophomore
Just Getting Started

Member    Likes (0)

We had an issue where RSS feeds showed funky characters when used to populate 'recent posts' listings on sister sites.

I found a couple of solutions involving disabling wptexturize, either by:

I like the elegance of the Plugin method, as it is very concise (& doesn't require modifying CORE functions... ;-). However, I'd prefer that only RSS feeds be excluded from the wptexturize() functionality (I like curly quotes everywhere else).

Any ideas on how I might fix this so RSS feeds don't get wptexturize()'d, but everything else does?

NOTE: Modifying the Encoding for pages and feeds setting on 'Settings > Reading' helps, but only if the web page on which the RSS feed will be displayed matches the encoding specified.

WordPress Questions?

We've got answers!

  • 350+ Premium Plugins & Themes
  • 'Your WordPress Team' support
  • WordPress Nirvana from just $19

Find out more »