Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: UTF8 driving me up the wall again!

by rpnoble419 (Pilgrim)
on Sep 04, 2012 at 16:22 UTC ( #991644=note: print w/replies, xml ) Need Help??

in reply to UTF8 driving me up the wall again!

if you are using MySQL then you may want to try the following connection.
our $dbh = DBI->connect($dsn,'User','Pass',{mysql_enable_utf8 => 1}) o +r die "$DBI::errstr\n";
also don't forget to include the following line at the head of your script
use utf8;

Replies are listed 'Best First'.
Re^2: UTF8 driving me up the wall again!
by Corion (Pope) on Sep 04, 2012 at 16:25 UTC

    The utf8 documentation says (bold as found in the documentation):

    Do not use this pragma for anything else than telling Perl that your script is written in UTF-8.

    ... so that won't help at all with encoding troubles related to input and output of data, which is what the post seems to be about.

Re^2: UTF8 driving me up the wall again!
by ultranerds (Friar) on Sep 04, 2012 at 16:27 UTC
    Thanks - its actually working fine in the perl side of things - just seems to be phpmyadmin thats not liking it :( I've even tried setting up the latest version in a www folder... and that has the same problem. Guess I'll have to keep digging around :( (as far as I can see I'm doing everything correctly in the perl/mysql side... so I can't see whats causing it).... the joys of unicode :(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991644]
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 2016-10-01 20:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (7 votes). Check out past polls.