Hello,
I’m having trouble trying to sort out these strange characters appearing on some webpages, I’ve tried to sort it out but I really don’t know why it’s not working.
If you have a look at http://www.performingartistes.co.uk/artistes/tim-shipman in the third paragraph you’ll see that some strange characters are appearing, the content looks exactly the same in the database but I don’t know why, I’m guessing it’s how it’s been stored initally? It’s an old site which I have recently redesigned but the admin of the site has been using Microsoft Word to write out descriptions and then copy and paste the descriptions over and saved them through the admin panel.
Anyway, I’ve tried doing this to sort it out
In the bootstrap.php file
[php]
header(‘Content-Type: text/html; charset=utf-8’);
[/php]
In the header.php file
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I’ve also got $db->exec(“SET NAMES ‘utf8’”); after connecting to the database.
What am I missing? I’m really lost with this.
Thanks,
Adam