Re: [firebird-support] Firebird c++ API connect encoding

2014-11-22 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
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

2014-11-22 Thread hugo.lar...@yahoo.com [firebird-support]
Thanks Mark.

[firebird-support] Firebird c++ API connect encoding

2014-11-21 Thread hugo.lar...@yahoo.com [firebird-support]
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

2014-11-21 Thread Scott Morgan bl...@blueyonder.co.uk [firebird-support]
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