Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: database stores UTF8 strings inconsistently

by borisz (Canon)
on Jun 22, 2006 at 21:12 UTC ( [id://557023]=note: print w/replies, xml ) Need Help??


in reply to database stores UTF8 strings inconsistently

your utf8 string loose the utf8 flag. After you get it back from the database. You have to tell that the data from the db is in utf8.
my $same_with_utf8_on = Encode::decode("utf8", $from_db);
Or if you are sure, use
Encode::_utf8_on($from_db);
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found