If i take a look at the declaration of sqlite3_prepare16_v2() it looks like
SQLITE_API int sqlite3_prepare16_v2(
  sqlite3 *db,            /* Database handle */
  const void *zSql,       /* SQL statement, UTF-16 encoded */

There is a UTF-16 encoded string needed.

Black, Michael (IS) wrote:
> I think you're making the mistake of thinking that the entire SQL string
> is UTF-16.
> Look at the API for sqlite3_prepare16_v2
> SQLITE_API int sqlite3_prepare16_v2(
>   sqlite3 *db,              /* Database handle. */
>   const void *zSql,         /* UTF-8 encoded SQL statement. */
> It's your data fields that get encoded.
View this message in context: 
Sent from the SQLite mailing list archive at Nabble.com.

sqlite-users mailing list

Reply via email to