http://www.perlmonks.org?node_id=623814


in reply to Re: A UTF8 round trip with MySQL
in thread A UTF8 round trip with MySQL

$data = fetch;
$data = decode_utf8 $data;
The bit you're missing here is deciding which data to decode, because of course you need to handle text and binary data differently. The latest DBD::mysql drivers handle this automatically.

Clint

Replies are listed 'Best First'.
Re^3: A UTF8 round trip with MySQL
by Burak (Chaplain) on Jun 28, 2007 at 21:20 UTC
    Well, since I don't deal with binary data right now, I didn't think about that part :) Ok, I'll check the new interface, but I want to stay compatible with old versions too...