Subject Re: [Firebird-Java] Java CharSet to Firebird CharSet
Author Roman Rokytskyy
Fabiano,

Simply use the 'encoding' property and pass the Firebird charset name,
driver will do the translation.

Roman



Am 8. August 2012 23:28:31 schrieb "Fabiano" <fabiano@...>:
> Is there a recommended way to map from a Java CharSet (i.e. default
> o.s. CharSet) to Firebird CharSet?
>
> System.out.println(Charset.defaultCharset().name());
> output: windows-1252
>
> If i pass the value "windows-1252" to Jaybird in the "charSet"
> property, it gives an error during connection.
>
> BTW, when i pass a wrong charset name to Jaybird, it throws a
> RuntimeError, instead of a SQLException error, what makes it
> "uncatcheable" in most cases, unless the code is catching
> RuntimeException's, what is not usual.
>
> Regards,
>
> Fabiano
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>