[Catalyst] Help needed with Unicode

Mario Minati mario.minati at googlemail.com
Tue Mar 20 21:45:51 GMT 2007


Am Dienstag 20 März 2007 17:35 schrieb Bill Moseley:
> On Tue, Mar 20, 2007 at 04:40:57PM +0100, Mario Minati wrote:
> > now it's my time to make my Catalyst app Unicode aware and I (like some
> > others) ran into a Unicode problem.
> >
> > - Postgres database with UTF8 enabled (ENCODING = 'UTF8').
>
> By the way:
>
> Are you setting DBD::Pg's pg_enable_utf8?

That was also missing.
Thank you.

For those who are interested: 

package glue::Model::glueDB;

use strict;
use base 'Catalyst::Model::DBIC::Schema';

__PACKAGE__->config(
    schema_class => 'glueDB',
    connect_info => [
        'dbi:Pg:dbname=glue',
        'xxx',
        'xxx',
        {AutoCommit=>1,
        pg_enable_utf8 => 1},
    ],
);

1;

Greets,
Mario



More information about the Catalyst mailing list