From 8c415e9850da90e1fc42a118d43249af823d0de8 Mon Sep 17 00:00:00 2001 From: ngoomie Date: Wed, 15 Mar 2023 00:52:31 -0600 Subject: [PATCH] fixed unicode issue --- main.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.pl b/main.pl index 1880c63..29348c3 100755 --- a/main.pl +++ b/main.pl @@ -14,7 +14,7 @@ my $date = "@month_name[$mon] $mday, $year"; # Create the webhook object and DBI object my $webhook = WebService::Discord::Webhook->new( $url ); -my $dbh = DBI->connect("dbi:SQLite:questions.sqlite", { AutoCommit => 1, sqlite_unicode => 1 }); +my $dbh = DBI->connect("dbi:SQLite:questions.sqlite", '', '', { AutoCommit => 1, sqlite_unicode => 1 }); # Fetch ID of unsent questions from DB and pass to @questions array. If no questions are left then instead send an error to Discord and close DB connection my @questions = @{ $dbh->selectcol_arrayref("SELECT id FROM data WHERE used = 0") };