Perceive

Magpie and Feed Encoding (or "Why are there question marks everywhere?")

So I'm working on a website that uses MagpieRSS for parsing a feed. The feed had those pretty quotation and apostrophes in it, but when Magpie parses the feed, they all get turned into question marks.

So, for future reference, you can force Magpie to parse the feed according to the encoding you need by setting a constant before calling magpie:

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

That's all. Your feed will look good.