I've narrowed this issue down.
If I put a £ anywhere in the index.php template, it shows as £.
If I put it in any include file, even one with nothing pointing at a db, ie test.inc with only a £ in it, I get that £ shown as the diamond.
These are my scripts for getpage
Code: Select all
$page= isset($_GET['page']) ? $_GET['page'] : null;
function getPage(PDO $pdo)
{
$thispage="includes/".$_GET['page'].".inc";
if (file_exists($thispage))
{
include $thispage;
}
else
{
echo "<meta http-equiv='Refresh' content='0 ;URL=/selectpage'>";
}
}
getPage($pdo);
I'm clearly doing something that is causing this, but ONLY in the insert 'include' file.