fixed unicode issue

This commit is contained in:
ngoomie 2023-03-15 00:52:31 -06:00
parent 5d247267cb
commit 8c415e9850
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ my $date = "@month_name[$mon] $mday, $year";
# Create the webhook object and DBI object # Create the webhook object and DBI object
my $webhook = WebService::Discord::Webhook->new( $url ); 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 # 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") }; my @questions = @{ $dbh->selectcol_arrayref("SELECT id FROM data WHERE used = 0") };