[Mono-list] sqlite3 on windows, encoding problem

Joshua Tauberer jit at occams.info
Wed Nov 15 11:46:50 EST 2006

Carlos Ble wrote:
> 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";


Could you provide the stack trace of the exception and detailed steps to
reproduce the problem?  (Are you opening a database created in Linux or
creating a new database in Windows, or...?)

- Joshua Tauberer


"Strike up the klezmer and start acting like a man. You're
about to have a truth-mitzvah."  -- The Colbert Report

More information about the Mono-list mailing list