[SOLVED]PHP Generating Odd Characters
Posted: Fri Aug 20, 2010 10:18 pm
Hey everyone, I'm using some PHP code I gleaned off the web which is meant to parse RSS feeds. I've been editing it to display that which I wish, yet I've hit a bump.
In order to see what problem I'm having please see: http://www.boaty.wildspad.com/mtheoryninja
Here's is the RSS source: http://www.watchtheguild.com/feed/
As you can see, the RSS Feed shows 'The Guild', yet the website shows ‘The Guild’.
Here's the PHP that I'm using
The full source code can be found at http://www.boaty.wildspad.com/mtheoryni ... reader.txt
I have no PHP experience, although I've used knowledge of other programming languages to help me edit this code so far. I'm sure what I'm asking is simple, yet never having used PHP, I don't know what it is.
Thanks in advance for any help which can be given.
In order to see what problem I'm having please see: http://www.boaty.wildspad.com/mtheoryninja
Here's is the RSS source: http://www.watchtheguild.com/feed/
As you can see, the RSS Feed shows 'The Guild', yet the website shows ‘The Guild’.
Here's the PHP that I'm using
Code: Select all
function show(){
if($this->title){
if($this->link){
echo "<a href=\"$this->link\">$this->title</a>\n";
}elseif($this->title){
echo "$this->title</a>\n";
}
if($this->pubdate)
echo "<br /><i>$this->pubdate</i><br />";
echo "\n";
}
}
I have no PHP experience, although I've used knowledge of other programming languages to help me edit this code so far. I'm sure what I'm asking is simple, yet never having used PHP, I don't know what it is.
Thanks in advance for any help which can be given.