How to define the use of utf-8 in Doctrine 2 in Zend Framework application.ini, when using Bisna

前端 未结 8 1741
暖寄归人
暖寄归人 2020-12-28 08:22

The following ZendCasts cast, shows a way to use doctrine 2 in a zend framework environment.
Using this configuration, how can I make the connection use a utf-8 charset

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-28 08:41

    For LoSo library and Doctrine 2 and MySQL add

    resources.doctrine2.connection.driverOptions.1002 = "SET NAMES 'UTF8'"
    

    to your application.ini

提交回复
热议问题