Fix for issue #3 - Retreive utf8 characters properly from the database
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user