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.

7 comments:

James said...

Stop fighting with erectile dysfunction! Buy viagra brand

Anonymous said...

ski hotels abbey hotel, cheap hotel rooms, cost hotel spas hotels leading hotels of the world, compare hotels, b&b hotels cheap vegas flights house bed, uk deals, find hotel room where can i buy cheap viagra viagra without prescription, viagra pills, viagra online voucher housing b&b deals, housing legislation, pet friendly motels

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!

Bac Pham said...
This comment has been removed by the author.
Bac Pham said...
This comment has been removed by the author.
Bac Pham 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

Dave said...

These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post, writing is simply great, thank you for the post penis enlargement penis enlargement pills VigRX Plus