I have one Zend project where I use mysql – my db connection collation is utf8_unicode_ci and my tables collation is utf8_unicode_ci. I have stored successfully some records which contain UTF8 characters but when I try to fetch them from the DB they’re broken e.g.:
DVI•1500HD is fetched as DVI•1500HD
I’ve tried setting resources.db.params.charset = utf8 in application.ini but it doesn’t fix the problem.
Any ideas?
Try adding the following line to your config.
Regarding to your Zend Framework version, this command is needed to change the transfer encoding of mysql. The given command is the first thing executet when intantiating the db adapter.