SimpleXML & html entities = strange characters
I am getting a feed as such..
In this feed one of the items I am getting contains a html entity, which is the entity for the "hyphen character", which is However when this is returned from SimpleXML all I get is a "â€“". I have read other similar questions & some mention to make sure your page is set to "UTF-8"; though not sure how this will stop SimpleXML from returning the strange character?
$posts = new SimpleXMLElement(WP_ROOT_URL . 'feed/', 0, true);
Any which way I do have this on the page the data is output on:
What can I do here to get the correct entity?
<meta http-equiv="content-type" content="text/html; charset=utf-8" />