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

前端 未结 8 1709
暖寄归人
暖寄归人 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:44

    Since this is for Doctrine 2, and ZendCasts is using Bisna, I believe you can just add this to your configuration.ini file

    resources.doctrine.dbal.connections.default.parameters.driverOptions.charset = "utf8"
    

    I'm not exactly sure how to test if it is sticking or not but let us know.

提交回复
热议问题