Riajul Islam Riajul Islam - 1 year ago 103
MySQL Question

Bangla font not showing in cakephp when data retrieve from mysql database

I am using cakephp version 2.7 . In my view I van show static bangla. But when I get data from database then bangla font not working.

Answer Source

Check your layout file have below line -


  <meta charset="utf-8">

Also set your Database Collation to utf8_general_ci

Search and Uncomment below line from app/Config/database.php file

//'encoding' => 'utf8',


'encoding' => 'utf8',
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download