Consuming RSS Feed In PHP

Posted by mrduclaw on Stack Overflow See other posts from Stack Overflow or by mrduclaw
Published on 2010-04-02T06:15:56Z Indexed on 2010/04/02 6:23 UTC
Read the original article Hit count: 370

Filed under:
|
|

I'm trying to use an RSS feed from my blog on the news section on another site. Everything seems to be working fine until I use something like an ellipsis on my blog.

The expected output is:

One more time…less fail
Although this is no joking matter…

The actual output is:

One more time?less fail
Although this is no joking matter…

The problem is that ? should be a .... The code I'm using is the same for the first line (the blog title) and the second line (the blog contents) and that code is:

$a = utf8_decode($a);
print("$a");

Where $a is the string from the RSS feed.

Can anyone point in the right direction why that code would work correctly for the body (second line) and not for the title (first line)? Or suggest a better way to do this?

Thanks!

© Stack Overflow or respective owner

Related posts about rss

Related posts about php