character encoding - Doctrine Dbal: How to set collation? (in Symfony2) -


i'm used creating pdo object in 4th parameter (driver options):

array(\pdo::mysql_attr_init_command => "set names {$this->charset} collate {$this->collation}") 

how can tell symfony 2 this? in configuration file can see 'charset' option.

i need create tables specific collation: utf8_unicode_ci

what can have tables created through command line created collation instead of latin1?

i have been facing same problem. seems has dbal configuration. have found in pdo documentation following under pdo_mysql dsn — connecting mysql databases:

charset ignored.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -