一切都是utf8,但当我看到表时,我看到字符集是latin
,排序规则是latin_swedish_ci
。我想设置utf8和utf8_collation_ci。怎样
在您的数据库中。yml您可以设置:
all:
doctrine:
class: sfDoctrineDatabase
param:
dsn: 'mysql:host=localhost;dbname=mydb'
username: myusername
password: mypassword
attributes:
default_table_charset: utf8
default_table_collate: utf8_general_ci