Usuario Anónimo wrote: > Hello, I download the file dataset_tutorial_01.zip from > http://www.geocities.com/camara_luiz/docs/dataset/dataset-tutorial-01.html. > > When I try compile the project I get the next error: > > Project raised exception class 'EDatabaseError'. > > Why? >
Sqlite3 expects UTF8 encoded file names. Probably your config dir path contains accented characters and GetAppConfigDir returns ansi encoded instead of UTF8. Replace FileName := IncludeTrailingPathDelimiter(GetAppConfigDir(False)) + 'data.db'; by FileName := UTF8Encode(IncludeTrailingPathDelimiter(GetAppConfigDir(False)) + 'data.db'); Luiz _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus