Subject | Re: [Firebird-Java] Charset |
---|---|
Author | Alejandro Alberola Arias |
Post date | 2002-03-26T20:02:31Z |
> Is there any way to specify charset when connecting to a database.I added charset support on the client side to CVS yesterday.
> Interclient supported it with a "charSet" property.
Update your code from CVS.
It does not work with a property. The driver will select
automatically the charSet depending on the default
encoding of the Java Virtual Machine on your platform.
Currently it auto-selects the ISO8859_1 (ISO-8859-1) and
win1252 (Cp1252) charSets. Other mappings should be added to
FBManagedConnectionFactory class.
If you need another charSet, send me the output of the
System.getProperty("file.encoding") on your platform with
the corresponding Firebird charSet. And I will add it
to the driver. Example:
System.getProperty("file.encoding") --> ISO-8859-1
Firebird character set --> ISO8859_1
I think that is better to select the charSet automatically
and don't bother about setting any property.
Bye.
--
+--------------------------+
| Alejandro Alberola Arias |
| Boix i Oltra, S.L. |
| email: alberola@... |
+--------------------------+