Subject | About the file trouble in Firebird .NET Provider |
---|---|
Author | tankinguard |
Post date | 2010-01-13T12:43:37Z |
I'm developing the database program using Firebird .NET Provider with C#. However, when trying creation the database file containing multi-byte characters, it occurs I/O Error. When I looked into the source code of .NET Provider(v2.5.1), there was a strange point at FesDatabase.cs / Line 203:
byte[] databaseBuffer = this.Charset.GetBytes(database);
Supposing the argument of the file name of isc_attach_database of API is ANSI char* type, I think that "byte[] databaseBuffer = System.Text.Encoding.Default.GetBytes(database);" is the right code.
How do you think?
byte[] databaseBuffer = this.Charset.GetBytes(database);
Supposing the argument of the file name of isc_attach_database of API is ANSI char* type, I think that "byte[] databaseBuffer = System.Text.Encoding.Default.GetBytes(database);" is the right code.
How do you think?