0
一切都是utf8它可以,仍然當我看到表,我看到字符集是latin
和整理是latin_swedish_ci
。我想設置utf8和utf8_collation_ci。怎麼樣?Symfony 1.4 propel schema.yml:如何設置utf8字符集,utf8_collate_ci作爲整理?
一切都是utf8它可以,仍然當我看到表,我看到字符集是latin
和整理是latin_swedish_ci
。我想設置utf8和utf8_collation_ci。怎麼樣?Symfony 1.4 propel schema.yml:如何設置utf8字符集,utf8_collate_ci作爲整理?
在databases.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
thx回答,但它的「推動」:),它忽略了字符集屬性 – 2012-01-15 12:58:45
我在得到這個解決相當感興趣。任何運氣,約翰? – 2012-04-10 16:56:38