Hi,
Im grabbing data from an XML feed and using SimpleXMLElement to grab the elements. Im then writing these to another file (using a cron).
This is working fine with the exception of some characters like the ™ ‘Trademark’ symbol.
When I echo the contents of the string before being written it displays fine - but by the time it is written to the static php file the trademark symbol becomes â„¢
Do I need to open the file in a certain way? Currently using this;
echo $header;
if(file_exists("header.php")){
$handle=fopen("header.php","w") or die("cannot open header.php");
if(fwrite($handle,$header,strlen($header)))
echo "header updated<br>\
";
fclose($handle);
}