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,

non readable character in database

in web page,

non readable character showing in web

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -