[Catalyst] Using mysql_enable_utf8

Octavian Rasnita orasnita at gmail.com
Wed Apr 29 11:30:04 GMT 2009


From: J. Shirley =

    > Try using the DSN method of enabling DBD::mysql attributes?  I don't =
use Catalyst::Model::DBI, so this is just a guess, but try:
    > __PACKAGE__->config( dsn =3D> 'DBI:mysql:database=3Dintranet;mysql_en=
able_utf8=3D1' );
    > -J

    Thanks. Finally I've seen that the following way works fine:

    $dbh->{mysql_enable_utf8} =3D 1;

    I don't know why it didn't work for the first time...

    Octavian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090429/a88bb=
3cc/attachment.htm


More information about the Catalyst mailing list