On Oct 29, 2009, at 4:41 PM, Jean-Christophe Deschamps wrote:

>
>> [1] Supposing some textual data already inserted as UTF-8 (default
>> mode) in
>> a dBase, and a connection opened with sqlite3_open(): Does a
>> sqlite3_column_text16 retrieves a correct UTF-16 content? Is to  
>> say, do
>> SQLite the convertion internally?
>>
>> [2] Assuming the previous -or a UTF-16 content obtained by any other
>> means-
>> and an develop using M$ VCpp for Windows32, say sizeof(w_char) == 2:
>> can be
>> used the UTF-16 content to directly fill an w_char string?
>
> Yes and yes, hopefully!

Yes and yes it is.

Of course, some unicode codepoints are encoded to 4 bytes using utf-16,
they will span 2 of the entries in the array of w_char variables. I
think (never checked though), that they are pretty obscure characters.

Dan.


> SQLite handles all necessary conversions and produces UTF-16 with
> native endianness, whatever encoding was used at database creation.
>
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

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

Reply via email to