Hi All, Im pulling my hair out here. All my pages are set to UTF-8 with header("Content-Type: text/html; charset=UTF-8");
On page A I have a form element <input type="hidden" name="body" value="'.htmlentities($body).'" /> that I get on Page B with :
header("Content-Type: text/html; charset=UTF-8");
$body = $_POST['body'];
echo html_entity_decode($body, ENT_COMPAT, 'UTF-8');
No matter what I do however, I get the following string returned:
� £ - is the body
Its as if the decoding is being totally ignored. I have also tried iconv with every possible charset but same issue. No matter what I do the euro and pound symbols remain as htmlentities from the post. Has anyone any ideas or can see where Im going wrong here with my code