Riajul Islam Riajul Islam - 10 months ago 80
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',