Thursday, March 25, 2010

MagpieRSS question marks

If you are trying to use MagpieRSS, you might encounter an issue where quotation marks (single and double quotation marks), and other characters, are simply displayed as questions marks (?) in the RSS output.

The issue is an charset issue. 1) You need to tell Magpie to output in utf-8. 2) Additionally, your HTML page needs to be in the same charset.

For 1)

Before any of your MagpieRSS code ... include these PHP statements.

define('MAGPIE_INPUT_ENCODING', 'UTF-8');

define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');


For 2)

Make sure your page has this at the top ... you might need to replace whatever is already defined on the page.

EDIT: Blogger doesn't like META tags ... here is what you need at the top of your page: http://pastebin.ca/1852343


Thanks to http://forums.digitalpoint.com/showthread.php?t=309378 for the tips.

6 comments:

James said...

Stop fighting with erectile dysfunction! Buy viagra brand

Anonymous said...

Cheap and trendy deisgner clothing from http://www.ronkaclothing.com where we sell: T by Alexander Wang, Clogs, Parker, Blazers, Shipley & Halmos, Twenty8Twelve, Hanii Y, we are owls, JADEtribe, Tapeet, eDM, under.ligne by doo.ri, Ami Clubwear - all available from our online designer clothing store at 50% off sale! Check out http://arts.harvard.edu - harvard university arts and fashion. We admire work of Harvard University Arts and Fashion - best school of arts where great designers learn how to create great looking designer clothing!

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

Before you pass the text out to the page you actually need to run it through a "cleaner" function - there was a particularly good example in a post here. If I can find it I'll post a link Real Estate in Vietnam

donnaj edwards said...

Thank you for your articles that you have shared with us. Hopefully you can give the article a good benefit to us. Kamagra Jells