06.02.06

Ask The Right Question!

Posted in general, learn, byteclub at 11:26 pm by Clinton

google’s great - but one *has* to be asking the *right* question. eish!

I wasn’t. Wasted lots of time. boo!

As many of you know, i’ve been know to play with php/rss/feeds for the byteclub blog list. I’m using the nice MagpieRSS code for getting feeds. I kept having nasty ?? instead of nice ‘ etc in post and titles… not happy, tried to fix, so, the short version/solution was to add…

define(‘MAGPIE_INPUT_ENCODING’,‘UTF-8′);
define(‘MAGPIE_OUTPUT_ENCODING’,‘UTF-8′);
define(‘MAGPIE_DETECT_ENCODING’,false);

before include the rss_fetch.in file. I’m posting code snippet more for my reference but i’m sharing ’cause that’s blogging. (oh yeah - i changed the html meta charset to utf-8 also…)

*but* my point: i spent a lot more time than i wanted/thought i needed to on this “little” issue (right zooba!) simply because i didn’t know the “right” question to be googling… urgh! Okay, rant over. i feel better now, and the results of the other changes i’m making to the blogroll i hope will make our byteclubbers happy too.

Some of the more enlightened bloggers/visitors i’m sure already known this fundamental “ask the right question” principle of the universe…

1 Comment

  1. Tom kerswill said,

    September 8, 2006 at 10:08 pm

    Hi,

    Thanks very much for this - a bit easier for me because I googled “magpie utf-8″ which led me straight here.

    Google’s not very good at picking up things like “?” so it was hard to know what to google for, until I realised this was an encoding / utf-8 issue!