[CDBI] [Repost] Set utf8 character set on class connection?

Perrin Harkins perrin at elem.com
Mon Jan 9 18:56:37 GMT 2006


On Sun, 2006-01-08 at 22:49 +0100, Birgit Kellner wrote:
> Rewriting the script for Class::DBI, I've now defined this class 
> connection:
> ILKB::DBI->connection("dbi:mysql:ilkb_test",'$usr','$pwd');
> 
> But how do I set the character set on this connection?

If you switch to overriding db_Main and making the connection yourself,
you can run the SQL to set the character set at connection time.  There
are examples of overriding db_Main on the wiki.

- Perrin





More information about the ClassDBI mailing list