Uwe Grauer schrieb:
> Uwe Grauer wrote:
> I found the culprit in my log settings:
> 
> app.DatabaseActivityLog = codecs.getwriter("UTF-8")(logfile)
> 
> After removing the above line everything works again.

Ok, you probably had latin-1 encoded data in your sql which could not be 
written as utf-8. I have just improved the log writer in r4968 so that 
it can cope with this situation as well.

However, this also reveals a problem with r4938 which now uses byte 
strings with database encoding instead of unicode for the sql inside the 
execute() method. Therefore, the sql now actually needs to be converted 
back to unicode or utf-8 before logging it, because the log writer is 
not aware of the database encoding.

I've fixed this and did some more clean-up in dCursorMixin (r4969).

-- Christoph

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to