diff Plugins/Samples/DatabasePlugin/Database.cpp @ 1717:3926e6317a43 db-changes

SetIdentifierTagInternal
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Oct 2015 17:45:34 +0200
parents 0bbcfd9695e5
children f4286d99ee0a
line wrap: on
line diff
--- a/Plugins/Samples/DatabasePlugin/Database.cpp	Sat Oct 17 12:16:27 2015 +0200
+++ b/Plugins/Samples/DatabasePlugin/Database.cpp	Mon Oct 19 17:45:34 2015 +0200
@@ -184,6 +184,8 @@
 {
   db_.Open(path_);
 
+  db_.Execute("PRAGMA ENCODING=\"UTF-8\";");
+
   // http://www.sqlite.org/pragma.html
   db_.Execute("PRAGMA SYNCHRONOUS=NORMAL;");
   db_.Execute("PRAGMA JOURNAL_MODE=WAL;");