Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: DBI inserting accents

by moritz (Cardinal)
on Mar 21, 2012 at 18:56 UTC ( [id://960845]=note: print w/replies, xml ) Need Help??


in reply to DBI inserting accents

OK, let's try to do this step by step.

First, try this script:

use utf8; binmode STDOUT, ':encoding(UTF-8)'; print "Séan\n"

Does this work fine? If yes, as the next step, use the first two lines as the preamble for all of the following scripts.

Try to read the string "Séan" from the database base after you have inserted it via the mysql command line client. Does that work?

Then insert that string (as a literal, ie stored directly in the text file) into the database, and read it from the DB via the mysql command line. Does that work?

If any of those does not work, please copy&paste the output here, even if it contains "weird" characters.

If all of these work, you should also be able to round-trip the characters via perl+DBI.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found