On 14 Aug 2012, at 3:05am, daedae11 <daeda...@126.com> wrote:

> Thank you. I got it. And I have another question. Does function sqlite3_exec 
> support UTF-16?

No.  sqlite3_exec() is a wrapper around sqlite3_prepare_v2(), and 
sqlite3_prepare_v2() expects UTF-8.  For UTF-16 you should be using 
sqlite3_prepare16_v2() .  But for some reason there's no sqlite3_exec16() .

However, _exec is relatively simple to write.  You can see what it does here:

<http://sqlite.org/c3ref/exec.html>

So all you should need to do is

sqlite3_prepare16_v2()
sqlite3_step()
andsqlite3_finalize()

Good luck with it.

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

Reply via email to