None of the solutions suggested in various forums, websites and the like worked. I ran several tests and none of them worked and so I came here.
The website where the error occurs is this: link
It was not developed by me, a client of mine requested that I fix this problem for him.
All special characters are always replaced by Ã. I tried to change the encoding to ISO
and the error remained, tried to change the encoding in the database, force UTF-8
on header
, set javascript
to interpret as UTF-8
and none of that worked. p>
The connection to the database is as follows:
<?php
$bd_host = "localhost";
$bd_user = "simulado_bd"; // Usuário do Banco de Dados
$bd_pass = "********"; // Senha do Bando de Dados
$bd_bd = "simulado_bd"; // Nome do Banco de Dados
$conectar = mysql_connect($bd_host, $bd_user, $bd_pass) or die (mysql_error());
mysql_select_db($bd_bd, $conectar);
mysql_query('SET CHARACTER SET utf8');