Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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;


Comment on Re: UTF8 driving me up the wall again!
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (21)
As of 2015-07-28 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls