* WK <w...@hot.ee> wrote:

> I think you are right, but i'm just confused now.
> I used the first one, but i tried like this:
>
> my $dbh = DBI->connect($data_source, $user, $password)
> || die "no connection\n";
> $dbh->{mysql_enable_utf8} = 1;

Please, read what the docs for DBD::mysql say about this:

"This will only take effect if used as part of the call to connect().
If you turn the flag on after connecting, you will need to issue
the command SET NAMES utf8 to get the same effect."

> One thing i can suggest: maybe this option (mysql_enable_utf8)
> could be enabled automatically when database is in UTF8.

Having the Debian module work in a different way that the one
upstream would be a Bad Thing, in my opinion. So I guess that
the best place to suggest such a change would be upstream:

http://rt.cpan.org/Public/Dist/Display.html?Name=DBD-mysql

Happy hacking!

-- 
Alex Muntada <al...@alexm.org>
http://alexm.org/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to