Riajul Islam Riajul Islam - 1 month ago 18
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

Check your layout file have below line -

For HTML5

<head>
  <meta charset="utf-8">
</head>

Also set your Database Collation to utf8_general_ci

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

//'encoding' => 'utf8',

TO

'encoding' => 'utf8',