Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: A UTF8 round trip with MySQL

by clinton (Priest)
on Jun 28, 2007 at 07:53 UTC ( #623814=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: A UTF8 round trip with MySQL
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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-25 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls