Subject | Re: [firebird-support] embedded database with Chinese path |
---|---|
Author | Hamish Moffatt |
Post date | 2017-10-03T07:20:04Z |
On 03/10/17 11:25, Hamish Moffatt
hamish@... [firebird-support] wrote:
I'm trying to connect to a database with a filename containing Chinese
characters.
I tried passing a UTF-8 encoded filename, with the isc_dpb_utf8_filename flag set. However, this is failing with a "transliteration error" because ISC_utf8ToSystem() is trying to convert the UTF-8 to wchar (ok) and then to ANSI, which is not ok because of the Chinese filename. It looks like the Chinese filename will just not work using encoded filenames.
But I can't figure out why the Windows short filename doesn't work - it seems Firebird is converting it back somewhere, and then failing on that?
Hamish