I am developping a Zend application. The data in my database is encoded in \"utf8_unicode_ci\". I declared in my application.ini :
resources.view.encoding =
I had the same problem, i fixed it in config/autoload/global.php by setting charset value :
'db' => [
'adapters' => [
'dummy' => [],
'myadapter' => ['charset' => 'utf-8',],
],
I used to develop ZF application with many languages including RTL ones . and I used to add this to my bootstrap file and I've found it pretty neat .
maybe this not an answer but i think its good suggestion :
public function _initMB(){
mb_internal_encoding("UTF-8");
}
for more info about mb_internal_string
check out : http://php.net/manual/en/function.mb-internal-encoding.php
Have you set the following, to fetch data from MySQL as utf8?
resources.db.params.charset = "utf8"
It is necessary to do three things to get correct characters displaying correctly:
Further information in Rob Allen's article.