Am Freitag, 3. Oktober 2008 00:03:02 schrieb Henning Hraban Ramm:
> Am 2008-10-02 um 18:21 schrieb Sibylle Koczian:
> >
> > I've tried to wrap sys.stdout using codecs.EncodedFile, but without
> > success. I
> > don't know which input and output encoding would be right. My system
> > charset
> > is UTF-8.
> >
> > Would it be possible to have DatabaseActivityLog write something
> > like "repr(theUnicodeObject)"? Not very pretty, but for diagnostic
> > purposes
> > perhaps acceptable?
>
> You can't simply print python unicode objects to stdout.
>
No, but repr() changes the unicode object into a bytestring.
> Just change your wrapper that it works like
> sys.stdout.write(u'äöü'.encode('utf-8'))
>
It's the Dabo code using DatabaseActivityLog that does the writing. I could
only replace sys.stdout with something else, and I don't quite know what
with.
Greetings
Sibylle
--
Dr. Sibylle Koczian
_______________________________________________
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]