6 responses to “Creating utf-8 tables in symfony 1.4 /doctrine 1.2”

  1. Stuart

    Not sure this is related to your issue, but another thing is ensure that the db connection is utf-8 because all kinds of horrors can happen with utf8 tables and a latin1 connection.

    The worst thing is that the issue is not obvious until you look at the data via a client with a utf8 connection.

  2. Dextro

    You can put the main options for all tables at the top of your schema.yml file

    options:
    collate: utf8_unicode_ci
    charset: utf8
    User:
    columns:
    username: string(255)
    password: string(255)

  3. UTF8 con Doctrine en Symfony 1.4 | Symfony por David Vega

    [...] Rajat Pandit configure, database, doctrine, utf8 This entry was posted on Ene 21st, 2010 at 06:45 and is [...]

  4. Susan

    Hi,

    you could also directly create a utf8-database:

    config/databases.yml

    all:
    doctrine:
    class: sfDoctrineDatabase
    param:
    dsn: mysql:host=localhost;dbname=
    username: root
    password:
    attributes:
    default_table_collate: utf8_general_ci
    default_table_charset: utf8

    $ ./symfony doctrine:build-db

Leave a Reply