I have visited several sites and StackOverflow was the main one, where several solutions were proposed for page accentuation problems. I noticed that I had set up my wrong database (utf8-bin) and my page was with ISO-8859-1 charset. I have corrected and already tried everything but my header continues displaying strange characters like the one below:
Myheaderlookslikethis:
<?php$title=BD::conn()->prepare("SELECT 'title', 'id', 'keywords', 'description' FROM 'pags' WHERE 'id' = ? LIMIT 0 , 1");
$title->execute(array($pag));
$dados = $title->fetch();
?>
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title><?php echo $dados['title']; ?> - Gopinatha ®</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
My bank looks like this:
Mytablelookslikethis:
Andthefieldinquestionlookslikethis: