<?php

$pdo = new PDO('mysql:host=127.0.0.1;dbname=marjo21mlo', 'root', 'root');

?>

<?php
header('Content-Type: text/html; charset=UTF-8');
$pdo = new PDO('mysql:host=127.0.0.1;dbname=marjo21mlo', 'root', 'root');
$pdo->exec("SET CHARACTER SET utf8");                                                                                                                        
?>

Add some lines to encode all in UTF8
Add some lines to encode all in UTF8