Deve essere utf8 anche l'encoding della connessione al database: http://php.net/manual/en/function.mysql-set-charset.php