We can explicitly set the char set to utf8 when initializing PDO, just add \"charset=utf8\" to the dsn string. But how does one explicitly specify the collation
charset=utf8
Use this ---Done----
$pdo = new PDO('mysql:host=localhost;dbname=vocabulary;charset=utf-8', "root", "", array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
and in HTML page use