Subject | Re: [Firebird-Java] Re: FBWrappingDataSource and character encodings |
---|---|
Author | Rick Fincher |
Post date | 2003-03-25T23:23:07Z |
I presume by this you mean that this technique works? If so, I'll add it to
the FAQ. The FAQ currently states"
"Support for character encodings has just been added. This is easily
accessible only from the FBDriver class. To use it, request a connection
with a properties object containing a name-value pair lc_ctype=WIN1250 or
other appropriate encoding name."
Rick
the FAQ. The FAQ currently states"
"Support for character encodings has just been added. This is easily
accessible only from the FBDriver class. To use it, request a connection
with a properties object containing a name-value pair lc_ctype=WIN1250 or
other appropriate encoding name."
Rick
----- Original Message -----
> Start working!!! ;-)
>
> --------------
> ...
> private FBWrappingDataSource ds;
> ...
> ds.setDatabase(databaseRegistrationInformation.getDataSourceDatabase
> ());
> ...
> FBConnectionRequestInfo cri = ds.getConnectionRequestInfo();
> cri.setProperty(ISCConstants.isc_dpb_lc_ctype,
> Config.DATABASE_DRIVER_ENCODING);
> cri.setProperty(ISCConstants.isc_dpb_sql_dialect, 3);
> ds.setConnectionRequestInfo(cri);
> ...
> --------------
> public class DatabaseRegistrationInformation {
> ...
> public String getDataSourceDatabase() {
> return "//" + host + ":" + port + "/" + name; //+ "?
> lc_ctype=" + DATABASE_DRIVER_ENCODING;
> }
> ...
> }
> --------------
>
>