indiansummersky has asked for the wisdom of the Perl Monks concerning the following question:
# Connect to database my $dbh = DBI->connect("DBI:mysql:database",'username','password') or +print DBI->errstr; # Prepare and execute query my $query = $dbh->prepare_cached('INSERT INTO test (text) VALUES (?)') + or print $dbh->errstr; $query->execute('A Â Ã Ä') or print $query->errstr; # Disconnect $dbh->disconnect;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl Character Set
by fizbin (Chaplain) on Nov 02, 2005 at 03:11 UTC | |
Re: Perl Character Set
by JamesNC (Chaplain) on Nov 02, 2005 at 01:18 UTC | |
Re: Perl Character Set
by Aristotle (Chancellor) on Nov 01, 2005 at 19:02 UTC | |
by indiansummersky (Beadle) on Nov 01, 2005 at 19:20 UTC | |
by Aristotle (Chancellor) on Nov 01, 2005 at 20:12 UTC | |
by radiantmatrix (Parson) on Nov 01, 2005 at 19:43 UTC |