PHP utf8 and not only recognize utf8
$cfg = parse_ini_file("system.ini");
echo $cfg['hostanme'];
$db=new PDO('mysql:host='.$cfg['hostanme'].';dbname='.$cfg['dbname'], $cfg['username'],$cfg['password']);
$db->exec("set character_set_client = utf8");
$db->exec("SET character_set_results =utf8");
$db->exec("SET character_set_connection = utf8");