Subject | cannot attach to database files if path contains unicode characters |
---|---|
Author | lucipl77 |
Post date | 2008-07-22T14:56:54Z |
Hi,
My configuration: Firebird 2.0.3.12981 embedded release ( or
2.1.1.17910 embedded release) on Windows XP x64 SP2 , Intel CPU,
IBPP, Visual C++ Visual Studio 2005.
I want to open a firebird database from the local computer and it
doesn't work if the database path contains unicode characters.
I tried several aproaches to convert the path from a widechar string
to ansi string:
- converting the path to MBCS using WideCharToMultiByte API, with
the CP_THREAD_ACP, CP_ACP.
- converting the path to 8.3 format using GetShortPathName API.
The error:
when isc_attach_database is executed it returns with the following
error description:
Engine Code : 335544344
Engine Message :
I/O error for file "D:\Temp\RUSSIA~1\test.FDB"
Error while trying to open file
The filename, directory name, or volume label syntax is incorrect.
My configuration: Firebird 2.0.3.12981 embedded release ( or
2.1.1.17910 embedded release) on Windows XP x64 SP2 , Intel CPU,
IBPP, Visual C++ Visual Studio 2005.
I want to open a firebird database from the local computer and it
doesn't work if the database path contains unicode characters.
I tried several aproaches to convert the path from a widechar string
to ansi string:
- converting the path to MBCS using WideCharToMultiByte API, with
the CP_THREAD_ACP, CP_ACP.
- converting the path to 8.3 format using GetShortPathName API.
The error:
when isc_attach_database is executed it returns with the following
error description:
Engine Code : 335544344
Engine Message :
I/O error for file "D:\Temp\RUSSIA~1\test.FDB"
Error while trying to open file
The filename, directory name, or volume label syntax is incorrect.