On 12/18/2016 7:17 AM, Jean-Christophe Deschamps wrote:
Since your DB is UTF-16LE encoded, you shouldn't convert your strings to
UTF8.
int nRet= sqlite3_exec(m_hDB, szSQL, NULL, 0, &pErrMsg);
alone should work fine.
No it should not. The encoding of the database is irrelevant here:
sqlite3_exec still expects a UTF-8 encoded string. There are SQLite API
functions that accept UTF-16 strings (e.g. sqlite3_bind_text16), but
sqlite3_exec is not one of them.
--
Igor Tandetnik
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users