From aeadc4bb7a86be94cacfe16fd05dfc7c9eeb3b32 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 12 Aug 2014 00:57:02 +0200 Subject: [PATCH] MSGBASE: sqlite database always contains utf-8 --- modules/MSGBASE.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.30.2