Subject | Re: [Firebird-Java] GDSException |
---|---|
Author | Rick Fincher |
Post date | 2004-01-31T20:37:32Z |
Hi Urs,
Yes, you can add "?lc_ctype=ISO8859_1" to the end of the database URL string
to get something like:
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/firebird/test.
gdb?lc_ctype=ISO8859_1", "sysdba", "masterkey");
Or you can use properties like so:
Properties p = new Properties();
p.put("user","sysdba");
p.put("password","masterkey");
p.put("lc_ctype","ISO8859_1");
Class.forName("org.firebirdsql.jdbc.FBDriver");
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:127.0.0.1/3050:C:\\Database\\d
bname.gdb",p);
Rick
Yes, you can add "?lc_ctype=ISO8859_1" to the end of the database URL string
to get something like:
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/firebird/test.
gdb?lc_ctype=ISO8859_1", "sysdba", "masterkey");
Or you can use properties like so:
Properties p = new Properties();
p.put("user","sysdba");
p.put("password","masterkey");
p.put("lc_ctype","ISO8859_1");
Class.forName("org.firebirdsql.jdbc.FBDriver");
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:127.0.0.1/3050:C:\\Database\\d
bname.gdb",p);
Rick
----- Original Message -----
>
> Hi Rick
>
> I am using a ISO8859_1 database. Can I put this in url connection string?
> Please tell me the correct specification.
>
> Thanks for help.
>
> Urs