If i take a look at the declaration of sqlite3_prepare16_v2() it looks like this: 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: http://old.nabble.com/UTF16---sqlite3_prepare16_v2-tp28643020p28643888.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users