一切都是utf8,当我看到桌子时,我看到charset是latin
,整理是latin_swedish_ci
。我想设置utf8和utf8_collation_ci。怎么样?
答案 0 :(得分:1)
可以设置:
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