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

Michele Beltrame mb at italpro.net
Fri Mar 3 17:50:50 CET 2006


Hi!

> DBIx::Class is an ORM. The config change I suggest should make it run that
> SQL statement - but I've seen previous reports that 'set names utf8' isn't
> sufficient, hence also mentioning the UTF8Columns component (which is now
> in DBIx-Class-current).

I tried it and it did no good. Also this full-featured version did no good:

__PACKAGE__->storage->on_connect_do([
	'set names utf8',
	'set_character_set_client=utf8',
	'set_character_set_results=utf8',
	'set_character_set_connection=utf8'
]);

	Michele.

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



More information about the Catalyst mailing list