in reply to Re^6: UTF8 issue when getting website via LWP::UserAgent in Perl
in thread UTF8 issue when getting website via LWP::UserAgent in Perl
Eugh :/my $dsn = "DBI:mysql:database=$db_cfg->{database};host=$db_cfg->{h +ost};port=3307"; my $dbh = DBI->connect($dsn, $db_cfg->{login}, $db_cfg->{password} +); $dbh->{mysql_enable_utf8} = 1; my $sth = $dbh->prepare( "INSERT INTO ReadingGrabCache SET title = + ?" ); $sth->execute( $title ) or die $DBI::errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: UTF8 issue when getting website via LWP::UserAgent in Perl
by runrig (Abbot) on May 12, 2016 at 15:58 UTC | |
by ultranerds (Hermit) on May 12, 2016 at 15:59 UTC |