[Mono-list] sqlite3 on windows, encoding problem

Carlos Ble carlosble at shidix.com
Wed Nov 15 12:15:01 EST 2006


The project is public:
http://developer.berlios.de/projects/sharptranslator
The binary version containing a windows .bat:
http://prdownload.berlios.de/sharptranslator/sharptranslator-0.1.3.zip

Thanks Josh


El mié, 15-11-2006 a las 11:46 -0500, Joshua Tauberer escribió:
> 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";
> 
> Hi,
> 
> 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...?)
> 
-- 
Carlos Ble      
Shidix Technologies
www.shidix.com/carlosble




More information about the Mono-list mailing list