Subject | RE: [Firebird-Java] Re: Strange errors with JDBC driver |
---|---|
Author | Jan Aleman |
Post date | 2002-05-03T14:57:52Z |
Ok, I'll work on the URL thing as that's quite usefull, most java apps
prefer to connect using just driver and URL
I still don't understand why you allways have to specify the
characterset, defaulting to the charset a database is in when not
specified looks like a very natural option to me.
Jan Aleman
prefer to connect using just driver and URL
I still don't understand why you allways have to specify the
characterset, defaulting to the charset a database is in when not
specified looks like a very natural option to me.
Jan Aleman
> -----Original Message-----
> From: rrokytskyy [mailto:rrokytskyy@...]
> Sent: Thursday, May 02, 2002 12:41 PM
> To: Firebird-Java@yahoogroups.com
> Subject: [Firebird-Java] Re: Strange errors with JDBC driver
>
>
> > What troubles me is that you allways need to specify your character
> > set, why doesn't the driver find out in which characterset the
> > database is and switch to it? How can one make a Java application
> > that is supposed to talk to multiple databases and has to be
> > transportable?
>
> Not always. Charset is automatically selected using your
> file.encoding property. Probably, in the nearest future I will switch
> it to "NONE" as default encoding.
>
> Database charset should not be used as the default (also I doubt that
> it is possible) because there might be situation when this would not
> be acceptable (default DB charset is NONE, but some fields are
> defined with non-NONE chaset, then you get transliteration problems).
>
> > I'm also troubled by the fact that I don't see how to set the
> > characterset using a database URL instead of a properties
> object. Any
> > information on that?
>
> No chance. Currently properties encoded in URL are not supported. If
> you wish you can add this feature to your code, and I will commit it
> to main tree if everything is ok.
>
> Best regards,
> Roman Rokytskyy
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Tied to your PC? Cut Loose and Stay
> connected with Yahoo! Mobile
> http://us.click.yahoo.com/QBCcSD/o1CEAA/sXBHAA/saFo> lB/TM
>
>
> --------------------------------------------------------------
> -------~->
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>