From: Sebastian Date: Mon, 11 Aug 2014 22:57:02 +0000 (+0200) Subject: MSGBASE: sqlite database always contains utf-8 X-Git-Url: http://sraa.de/git/?a=commitdiff_plain;h=aeadc4bb7a86be94cacfe16fd05dfc7c9eeb3b32;p=fido.git MSGBASE: sqlite database always contains utf-8 --- diff --git a/modules/MSGBASE.pm b/modules/MSGBASE.pm index 01c7b13..83d291c 100644 --- a/modules/MSGBASE.pm +++ b/modules/MSGBASE.pm @@ -78,7 +78,8 @@ sub area_open($) my $dbh = DBI->connect("dbi:SQLite:dbname=$file", $CONFIG::config{dbase_user}, $CONFIG::config{dbase_pass}, - { 'AutoCommit' => 0, 'PrintError' => 1 } + { 'AutoCommit' => 0, 'PrintError' => 1, + 'sqlite_unicode' => 1 } ) or die("Can't connect to $file"); $dbh->do("CREATE TABLE IF NOT EXISTS '$table' ( 'id' INTEGER PRIMARY KEY,