[Mono-list] sqlite3 on windows, encoding problem
Carlos Ble
carlosble at shidix.com
Wed Nov 15 07:58:22 EST 2006
Hi!
I am in trouble porting my small sqlite3 application to windows. It
works fine on linux but there are encoding problems on windows.
When I try to open the connection, Open method calls sqlite3_open16 and
an exception arises. Mono seems to use Unicode and Windows encoding
seems to be different. I've tryed to set the environment variable:
set MONO_EXTERNAL_ENCODINGS="default_locale"
but still crash.
I've also tryed to build my app converting sources to unicode and also
ascii although the connection string doesn't contain unicode chars.
Versions: Mono 1.2, Mono.Data.SqliteClient, Version=1.0.5000.0
My dirty source:
string path =
System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,
"translator.db");
string connectionString = "URI=file:" + path + ", version=3";
Thanks
--
Carlos Ble
www.shidix.com/carlosble
More information about the Mono-list
mailing list