Fix for issue #3 - Retreive utf8 characters properly from the database

This commit is contained in:
Brian O'Donnell
2016-04-13 21:48:01 -04:00
parent 2fdb45cc4c
commit a5f6647960
+1 -1
View File
@@ -213,7 +213,7 @@ sub update_feed {
sub connect_to_db {
my ( $db_file ) = @_;
my $dbh = DBI->connect("dbi:SQLite:dbname=$db_file", '', '', { RaiseError => 1 } ) or die $DBI::errstr;
my $dbh = DBI->connect("dbi:SQLite:dbname=$db_file", '', '', { RaiseError => 1, sqlite_unicode => 1 } ) or die $DBI::errstr;
return $dbh;
}