UTF-8 Not working on all pages

0

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>
    
asked by anonymous 14.11.2017 / 15:34

1 answer

0

I'm not sure if this will work but I believe so, so try this:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    
14.11.2017 / 18:34