The test data is inserted via script. The SQL - Workbench shows the
correct data, I don't use phpmyadmin.. I think the database is OK as
it works with Symfony 1.4. This is my database.yml for Symfony 1.4.
I wondered where I would find the encoding for the database definition
in Symfony 2.
doctrine:
class: sfDoctrineDatabase
param:
dsn: 'mysql:host=localhost;dbname=xxxxxx'
username: xxxxxx
password: xxxxxx
encoding: utf8
attributes:
DEFAULT_TABLE_TYPE: INNODB
DEFAULT_TABLE_CHARSET: utf8
DEFAULT_TABLE_COLLATE: utf8_general_ci
On 23 Jan., 16:12, Gábor Fási <[email protected]> wrote:
> How do you insert the data? Do they look correct in phpmyadmin, after
> making sure it uses utf8-encoded connection?
>
>
> On Sun, Jan 23, 2011 at 15:59, pzwosta <[email protected]> wrote:
> > Hi,
>
> > using Doctrine German Umlauts are not retrieved correctly from
> > database.
>
> > - My database is defined with collation utf8 - utf8_unicode_ci
> > (inherited by the tables, MySQL Workbench, Windows).
> > - The schema definitions for Doctrine are created automatically by
> > doctrine:schema:import.
>
> > When debugging in Eclipse I can see that the values in the Doctrine
> > objects are wrong (not only the web page in firefox). My Eclipse
> > project editor charset is also UTF-8.
>
> > This is my config.yml. Is there any other place where to config
> > charset UTF-8? I wasn't able to find anything in the docs.
>
> > # config.yml
> > app.config:
> > charset: UTF-8
> > ....
> > doctrine.dbal:
> > driver: PDOMySql
> > dbname: xxxxx
> > user: xxxxx
> > password: xxxx
>
> > Do you have any hint for me?
>
> > Thanks.
> > Peter
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en