in reply to SOLVED: Storing UTF-8 data into database from scraped web page

The DBD::mysql documentation states that setting mysql_enable_utf8 has only effect for incoming data if it is used as part of the call to connect(). Your snippet $dbh->{mysql_enable_utf8} = 1 indicates that you've set the attribute to an already connected database handle - this is too late. So either specify the attribute in the call to connect(), or execute the statement SET NAMES utf8.

Replies are listed 'Best First'.
Re^2: Storing UTF-8 data into database from scraped web page
by nysus (Parson) on Jun 14, 2018 at 19:11 UTC

    Thanks, yeah. I figured this out a after I made the OP. I'm still having the issue, though.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks