Subject Special unicode characters in connection string problem
Author venushau
Hello everyone.

I've got a problem in using the Firebird Embedded Server with
Jaybird 2.0 to create a connection to a database which contains some
unicode characters. Here is the connection string I'm using:

jdbc:firebirdsql:embedded:c:/wie über dieses/wie über dieses.fdb

It gives the following results:
=================================================
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544344. I/O
error for file CreateFile (open) ""
Error while trying to open file
null
Reason: I/O error for file CreateFile (open) ""
Error while trying to open file
null
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:122)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at test.firebird.TestFBConnection.getConnection
(TestFBConnection.java:84)
at test.firebird.TestFBConnection.getConnection
(TestFBConnection.java:61)
at test.firebird.TestFBConnection.main
(TestFBConnection.java:36)
at org.firebirdsql.gds.GDSException: I/O error for file CreateFile
(open) ""
Error while trying to open file
null
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.native_isc_attach_database
(Native Method)
at
org.firebirdsql.gds.impl.jni.BaseGDSImpl.iscAttachDatabase
(BaseGDSImpl.java:105)
at org.firebirdsql.jca.FBManagedConnection.<init>
(FBManagedConnection.java:90)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnectio
n(FBManagedConnectionFactory.java:466)
at
org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection
(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at test.firebird.TestFBConnection.getConnection
(TestFBConnection.java:84)
at test.firebird.TestFBConnection.getConnection
(TestFBConnection.java:61)
at test.firebird.TestFBConnection.main
(TestFBConnection.java:36)
java.lang.NullPointerException
at test.firebird.TestFBConnection.main
(TestFBConnection.java:36)
Exception in thread "main"
=================================================

Then I tried to make the connection using a Firebird Super Server
just by modifying the connection string to:

jdbc:firebirdsql:localhost:c:/wie über dieses/wie über dieses.fdb

This works correctly and queries can be performed successfully.

Does anyone know how to solve the problem?
Thanks very much.