[Dbix-class] Wrong UTF-8 handling in DBIx::Class/DBD::mysql despite mysql_enable_utf8

Marc Mims marc at questright.com
Wed May 12 13:40:46 GMT 2010


* Matias E. Fernandez <pisco at gmx.ch> [100512 04:36]:
> This is about "The Unicode Bug" [2] and will cause the following test to fail:
> 
> my $title = "\x{e4}\x{f6}\x{fc}"; # "äöü"

This isn't a UTF-8 string.

    utf8::is_utf8($title); # false

    utf8::upgrade($title); # now it is

> $album->title($title);
> $album->update();
> $album->discard_changes();
> ok($album->title(), $title, "UTF-8 column survives read/write cycle and preserves character semantics");

	-Marc



More information about the DBIx-Class mailing list