Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Nuno Lucas
On 2/28/07, Pavan <[EMAIL PROTECTED]> wrote: >But I'm thinking you really want to do this anyway: Well, I have a requirement to store/retrieve UTF16 strings. The current discussion thread is based on that. Pls let me know if my understanding of using sqlite3_open16 is correct to store and retr

Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Pavan
But I'm thinking you really want to do this anyway: Well, I have a requirement to store/retrieve UTF16 strings. The current discussion thread is based on that. Pls let me know if my understanding of using sqlite3_open16 is correct to store and retrieve utf16 strings. Thanks, Pavan. On 2/28

Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Dan Kennedy
On Wed, 2007-02-28 at 13:13 +0100, Pavan wrote: > Hi Lucas, > > >Shouldn't it be "sqlite3_open16(L"test.db",&db)" ? > > I tried this call. It works. But, the db file is created only with the first > character name > and the extenstion is also missing. (its like 't') > > Also, can you point to me

Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Brownie
I tried this call. It works. But, the db file is created only with the first character name and the extenstion is also missing. (its like 't') I think that your compiler's wchar_t is 32bit. But sqlite3_open16() requires 16bit characters. Try the following code. sqlite3_open16( "t\0e\0s\0t\0.\0

Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Pavan
Hi Lucas, Shouldn't it be "sqlite3_open16(L"test.db",&db)" ? I tried this call. It works. But, the db file is created only with the first character name and the extenstion is also missing. (its like 't') Also, can you point to me at some documentation which explains what does the 'L' mean in

Re: [sqlite] UTF16 Encoding

2007-02-28 Thread Nuno Lucas
On 2/28/07, Pavan <[EMAIL PROTECTED]> wrote: Hi, When i tried to create the db file using API sqlite3_open16("test.db",&db) it creats the file name with some junk characters. Shouldn't it be "sqlite3_open16(L"test.db",&db)" ? Regards, ~Nuno Lucas The file name is correct if i use sqlite3_op

[sqlite] UTF16 Encoding

2007-02-28 Thread Pavan
Hi, When i tried to create the db file using API sqlite3_open16("test.db",&db) it creats the file name with some junk characters. The file name is correct if i use sqlite3_open("test.db",&db). Does it mean sqlite3 does not support UTF16 encoding ? or Am i missing some package ? Thanks, Pavan.