MySQL PHP - how to display non readable character stored in database -
i'm working zendframework 2, here setting
./config/autoload/global.php
'db' => array( 'driver' => 'pdo', 'dsn' => 'mysql:dbname=littlepinktree;host=localhost', 'driver_optoins' => array( pdo::mysql_attr_init_command => 'set names \'utf8\'' ), )
in database,
in web page,
the collation set utf8_unicode_ci
, engine myisam
anyone have idea how display kind of characters in webpage properly?
if not in use can try add charset html header:
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
Comments
Post a Comment