Encoding problem : utf8

11 views
Skip to first unread message

Rodrigue Moulin

unread,
Feb 16, 2012, 7:01:42 AM2/16/12
to flextrine
Hello

I have encoding problem. Characters are not correct in the database
but they are correct in the flex client application.

Where do I configure to use utf8?

Thanks
Rod

Dave Keen

unread,
Feb 16, 2012, 7:07:01 AM2/16/12
to flex...@googlegroups.com, Rodrigue Moulin
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2112/4812 - Release Date: 02/15/12
>
>
I've never encountered this issue, but
http://stackoverflow.com/questions/5391045/how-to-define-the-use-of-utf-8-in-doctrine-2-in-zend-framework-application-ini
mentions adding SET NAMES utf8 to connection_options so you could try
adding this in your configuration yml file.

Simon Vanherweghe

unread,
Feb 17, 2012, 5:59:54 AM2/17/12
to flextrine
In my connectionsettings I use this:

'charset' => 'utf8',
'driverOptions' => array(1002 => "SET NAMES utf8"),

On 16 feb, 13:07, Dave Keen <d...@ruffness.com> wrote:
> On 16/02/2012 13:01, Rodrigue Moulin wrote:
>
>
>
>
>
>
>
> > Hello
>
> > I have encoding problem. Characters are not correct in the database
> > but they are correct in the flex client application.
>
> > Where do I configure to use utf8?
>
> > Thanks
> > Rod
>
> > -----
> > No virus found in this message.
> > Checked by AVG -www.avg.com
> > Version: 2012.0.1913 / Virus Database: 2112/4812 - Release Date: 02/15/12
>
> I've never encountered this issue, buthttp://stackoverflow.com/questions/5391045/how-to-define-the-use-of-u...

Rodrigue Moulin

unread,
Feb 27, 2012, 6:19:37 AM2/27/12
to flextrine
I added this in my yml config file under connection_options and now it
works fine

charset: utf8
driverOptions:
1002: SET NAMES utf8

Thanks
Reply all
Reply to author
Forward
0 new messages