From 32fcd732e2535090174142dd15b8b74fc444a9c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Sep 2012 12:12:06 +0200 Subject: Add support for alternative UTF-16 image for TEXT in SQLite Use it to handle QString and support std::wstring on Windows. --- qt/sqlite/basic/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt/sqlite/basic') diff --git a/qt/sqlite/basic/driver.cxx b/qt/sqlite/basic/driver.cxx index 322e962..c0fb883 100644 --- a/qt/sqlite/basic/driver.cxx +++ b/qt/sqlite/basic/driver.cxx @@ -32,7 +32,7 @@ main (int argc, char* argv[]) auto_ptr db (create_database (argc, argv)); object o; - o.str = "Constantin Michael"; + o.str = QString::fromUtf8 ("Constantin Micha\xC3\x88l"); o.blob = QByteArray ("\0x13\0xDE\0x00\0x00\0x00\0x54\0xF2\0x6A", 8); // Persist. -- cgit v1.1