On May 5, 2011, at 7:10 AM, Pete Whittet wrote:
> The log says:
>
> 2011-05-05 11:54:33 - ERROR - Field ingred: Incorrect unicode encoding
> set; using 'utf-8' instead
>
> I have not changed any of the file headings - they are all
>
> # -*- coding: utf-8 -*-
>
> Any pointers to where to start looking to fix this, please ?
The problem isn't your .py files; it's the way that the fields in your
SQLite database are encoded vs. the encoding set in your app.
To test, open the SQLite database from a terminal window (cmd.exe). I'm
not sure what the executable is named in Windows; under Mac/Linux it's called
'sqlite3'. Run the following command: "PRAGMA encoding;" - you should see
something printed like: "UTF-8". The default encoding used in Dabo is utf-8, so
if sqlite3 prints out anything different, that's where the error is.
Let me know what encoding SQLite reports, and how you created the
database with that field, and we can figure out how to correct it.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]