[Catalyst] UTF-8 strings getting stragely converted to latin1 when coming from MySQL DB

Michele Beltrame mb at italpro.net
Thu Mar 2 17:32:29 CET 2006


Hello!

> In your DBIC schema you can add
> 
> __PACKAGE__->storage->on_connect_do([ "set names utf8" ]);
> 
> to ensure this gets run immediately after the $dbh is (re-)connected.

All the examples I found around regarding Catalyst were using the "old"
object-based calls, and not the new schema-based ones.

Is there a way to perform this operation the old way? Or, better yet, is
there some documentation or good example on how to use the schema-based
thing under Catalyst?

	Thanks, Michele.

-- 
Michele Beltrame
http://www.varlogarthas.net/
ICQ# 76660101
Informativa privacy: http://www.italpro.net/em.html



More information about the Catalyst mailing list