Hi Simon,

That's what I am puzzled about.

I am using C++ in my test program and the file name is in CString which is in 
Unicode - I am not sure whether it is UTF-16.
I tried changing it from Unicode to CP_ACP (which changes to multi byte 
character in current code page) and passed that value to sqlite3_open ().

Regards,
Sireesha J

-----Original Message-----
From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] 
On Behalf Of Simon Slavin
Sent: Wednesday, November 09, 2011 4:19 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] sqlite3_open() failed with file name contains japanese 
characters


On 9 Nov 2011, at 10:17am, Sireesha Jakku wrote:

> Thank you for your quick reply.
> I tried placing the same file in other location, where the file path contains 
> only 'english', it worked fine.

Okay, good test.  When you specify a foldername in non-Roman characters, are 
you handling the string as UTF-16 ?  You say you use 'WideCharToMultiByte()' 
but I cannot tell from this whether it produces text in UTF-16 or not.

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

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to