Igor,

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.

Oops, of course that's it. I'm so used to have this kind of mistake reported about _SQLite3_Exec() using the wrapper that I use and support that I didn't realize the OP was using the bare SQLite API.

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to