this is what i have right now
Drawing an RSS feed into the php, the raw xml from the rss feed reads:
JavaScript
x
Paul’s Confidence
The php that i have so far is this.
JavaScript
$newtitle = $item->title;
$newtitle = utf8_decode($newtitle);
The above returns;
JavaScript
Paul?s Confidence
If i remove the utf_decode, i get this
JavaScript
Paul’s Confidence
When i try a str_replace;
JavaScript
$newtitle = str_replace("”", "", $newtitle);
It doesnt work, i get;
JavaScript
Paul’s Confidence
Any thoughts?
Advertisement
Answer
Try this:
JavaScript
$newtitle = html_entity_decode($newtitle, ENT_QUOTES, "UTF-8")
If this is not the solution browse this page http://us2.php.net/manual/en/function.html-entity-decode.php