Subject Re: Charset
Author rrokytskyy
> Is there any way to specify charset when connecting to a database.
> Interclient supported it with a "charSet" property.

AFAIK, not with the FBDriver approach. But you can always go "low-
level", and set the DPB and TPB params in the FBWrappingDataSource.

So, the code for charset would look like this:

FBWrappingDataSource ds = ...;

FBConnectionRequestInfo cri = ds.getConnectionRequestInfo();
cri.setProperty(GDS.isc_dpb_lc_ctype, "WIN1252");
// and I'm not sure if you need next line, but it will make no harm
ds.setConnectionRequestInfo(cri);

Connection c = ds.getConnection();

(I never tried this code, but this is how it should work :)).

I plan to make this feature available through the properties you pass
to the Driver interface, but it will be called "lc_ctype",
not "charSet".

Best regards,
Roman Rokytskyy