Re: [firebird-support] Firebird c++ API connect encoding
On 21-11-2014 12:21, hugo.lar...@yahoo.com [firebird-support] wrote: Can someone advice on how to set the encoding of the connection with Firebird C++ API isc_attach_database call. I want to set it to ISO8859_1 but cant find an example. I am assuming you are talking about the C API (and not the C++ API of Firebird 3). You need to add a database parameter buffer item of isc_dpb_lc_ctype (== 48) with the name of the character set as its value (NOTE: strings are prefixed by the length of the string) See also Creating and populating a DPB on page 44 and on of the Interbase 6.0 API Guide. Mark -- Mark Rotteveel
Re: [firebird-support] Firebird c++ API connect encoding
Thanks Mark.
[firebird-support] Firebird c++ API connect encoding
Hello, Can someone advice on how to set the encoding of the connection with Firebird C++ API isc_attach_database call. I want to set it to ISO8859_1 but cant find an example. Thanks, Hugo
Re: [firebird-support] Firebird c++ API connect encoding
On 21/11/14 11:21, hugo.lar...@yahoo.com [firebird-support] wrote: Can someone advice on how to set the encoding of the connection with Firebird C++ API isc_attach_database call. I want to set it to ISO8859_1 but cant find an example. Firebird doesn't have a C++ API, it has a C API and there are third party libs like IBPP. For the C API you'd need to set the isc_dbp_lc_ctype parameter when connecting (see the API Guide[0]) IBPP has a parameter on it IBPP::DatabaseFactory function. Scott [0] http://www.ibphoenix.com/downloads/60ApiGuide.zip