Subject | Re: Java CharSet to Firebird CharSet |
---|---|
Author | Fabiano |
Post date | 2012-08-12T19:41:37Z |
I would like to connect using the current charset from O.S, so i cannot hard-code a string, be it in the "charSet" or "encoding" property, as my application can run in different O.S or in the same O.S but with different charset.
Regards,
Fabiano
Regards,
Fabiano
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
>
> 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
> >
> >
> >
>