Subject | Re: Firebird 2.1 Character sets and Tomcat |
---|---|
Author | iananewby |
Post date | 2009-08-24T13:04:09Z |
Hi folks,
I've tried the following test program:
public static void main(String[] args) {
try {
Driver driver = (Driver) Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
DriverManager.registerDriver(driver);
Properties p = new Properties();
p.setProperty("user","aktivate");
p.setProperty("password","s1v2n3f9");
p.setProperty("encoding","WIN1252");
p.setProperty("sqlDialect","1");
Connection con = DriverManager.getConnection("jdbc:firebirdsql://localhost/C:/!Development/Aktiv2/DataSafe/Aktiv.fdb", p);
System.out.println(((FBConnection) con).getIscEncoding());
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}
The issue is the getIscEncoding returns NONE. Shouldn't this return WIN1252 or am I going mad?
Regards
Ian
I've tried the following test program:
public static void main(String[] args) {
try {
Driver driver = (Driver) Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
DriverManager.registerDriver(driver);
Properties p = new Properties();
p.setProperty("user","aktivate");
p.setProperty("password","s1v2n3f9");
p.setProperty("encoding","WIN1252");
p.setProperty("sqlDialect","1");
Connection con = DriverManager.getConnection("jdbc:firebirdsql://localhost/C:/!Development/Aktiv2/DataSafe/Aktiv.fdb", p);
System.out.println(((FBConnection) con).getIscEncoding());
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}
The issue is the getIscEncoding returns NONE. Shouldn't this return WIN1252 or am I going mad?
Regards
Ian