Hello.

I would like to connect:
* using .NET provider for FireBird
* to local database (file)
* using UTF-8 charset for communication with database
* my database file path contains polish diacritical signs
* path charset is Windows1250

The problem is when I try to connect with specified UTF8 enabled connection string, FireBird cannot recognize the path, because FB probably wants to read it as UTF-8 path.

When path does not contain polish signs, FireBird connects properly.

Below I paste my code:


*sFilePath* is some path with polish diacritical signs.

[code]

sConnectionString = "ServerType = 1; User = SYSDBA; Password = masterkey; Dialect=3; Database = '" + sFilePath + "'; CHARSET = UTF8";

ConnectionStringBuilder fbConnectionStringBuilder = new FbConnectionStringBuilder(sConnectionString);

fbConnection = new FbConnection(fbConnectionStringBuilder.ToString());
try
{
    fbConnection.Open();
}
[/code]

Here goes exception.

How can I connect using UTF-8 connection, but force FB to read properly the database path?

Thanx for any help
Marcin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to