0
I have visited several sites and Stackoverflow was the main one, where several solutions were proposed to problems of accentuation in the pages. I realized that I had set up my database wrong (utf8-bin) and my page was charset ISO-8859-1. I fixed and tried everything but my header keeps displaying strange characters like the below:
My headline is like this:
<?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 is like this:
My table is like this:
And the field in question is like this:
How are you making the connection to the bank ?
– rbz
Hello Raoni, I will edit the post to put the connection too
– Webster Moitinho