MSGBASE: sqlite database always contains utf-8
authorSebastian <basti@notizbuch>
Mon, 11 Aug 2014 22:57:02 +0000 (00:57 +0200)
committerSebastian <basti@notizbuch>
Mon, 11 Aug 2014 22:57:02 +0000 (00:57 +0200)
modules/MSGBASE.pm

index 01c7b1317e2a13bc699e435631919adf98297ef6..83d291c925b1dc3b32797f8b40e611fffc211e65 100644 (file)
@@ -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,