This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christoph
Recipients benjamin.peterson, christoph
Date 2008-03-31.09:47:42
SpamBayes Score 0.011226687
Marked as misclassified No
Message-id <1206956869.87.0.556020328352.issue2517@psf.upfronthosting.co.za>
In-reply-to
Content
To be more precise: I see no way to convert the encapsulated non-ASCII 
data from the string in an easy way.
Taking e from my last post none of the following will work:
str(e) # UnicodeDecodeError
e.__str__() # UnicodeDecodeError
e.__unicode__() # AttributeError
unicode(e) # UnicodeDecodeError
unicode(e, 'utf8') # TypeError

My solution around this right now is raising an exception with an 
already converted string (see the link I provided).

But as the tutorials speak of simply "print e" I guess the behaviour 
described above is some kind of a bug.
History
Date User Action Args
2008-03-31 09:47:50christophsetspambayes_score: 0.0112267 -> 0.011226687
recipients: + christoph, benjamin.peterson
2008-03-31 09:47:49christophsetspambayes_score: 0.0112267 -> 0.0112267
messageid: <1206956869.87.0.556020328352.issue2517@psf.upfronthosting.co.za>
2008-03-31 09:47:43christophlinkissue2517 messages
2008-03-31 09:47:43christophcreate