Consuming RSS Feed In PHP
- by mrduclaw
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!