I'm having trouble using charset='UTF-8'
. I am developing a site for a college project using MVC and as a default I declare utf-8
in a view to be used as the default for other views, however on most pages unicode works, and in others not, being that I use the same pattern for all views. Does anyone know any way to fix this or why is this error?
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<base href="/<?php echo $baseUrl ?>" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?=$title?>
</title>
</head>
<body>
<section>
<?php $this->controller->renderView();?>
</section>
</body>