Subject Re: [firebird-support] Firebird 2.0, Windows, and multibyte/unicode file paths.
Author Richard Wesley
Hi Greg -

On Mar 8, 2007, at 13:51, Greg At ACD wrote:

> My concern is more with the database path itself. Do I need to use the
> WideCharToMultiByte() function to get the path in a form that the
> server will work with? I presume I have to use the current codepage
> for this... but what if I lose characters along the way if a path
> character isn't part of my current codepage?

We are using CP_THREAD_ACP with WideCharToMultiByte and it seems to
work fine. I haven't tested it under extreme scenarios, but it does
work for French.

(We also set UTF8 as the communication character set:

dpb.SetParam( isc_dpb_lc_ctype, _T("UTF8") );

but I think you are already doing this.)

HTH,
________________________________________________________
Richard Wesley Senior Software Developer Tableau
Software
Visit: http://www.trytableau.com/now.html