我在哪里可以声明模型视图的字符集? Zend FrameWork

I'm new to zend framework and have been developing a application. During this developing I notice that the layout of the application reads UTF-8 but the model views of my modules don't.

I have done some research and some people where discussing that the model view class uses a different charset as standard and that I needed to config the model view before passing the content through it.
How can I fix this?

From my experience there are 2 places for the encoding:

Firs is in layout.phtml in HTML:

<!DOCTYPE html>
<html lang="...">
<head ...>
    <meta charset="utf-8">

And for MySQL in connection string to the DB. From global.php

'db'              => [
    'driver' => 'Pdo',
    'dsn'    => 'mysql:dbname=dbname;host=localhost;charset=utf8',
],