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 vstinner
Recipients mbecker, vstinner
Date 2008-11-21.23:07:02
SpamBayes Score 0.0019196853
Marked as misclassified No
Message-id <1227308823.66.0.273110538.issue4329@psf.upfronthosting.co.za>
In-reply-to
Content
It's not a bug. base64 is a codec to encode *bytes* and characters. 
You have to encode your unicode string to bytes using a charset
 Example (utf-8):
>>> from base64 import b64encode, b64decode
>>> b64encode(u'a\xe9'.encode("utf-8"))
'YcOp'
>>> unicode(b64decode('YcOp'), "utf-8")
u'a\xe9'
History
Date User Action Args
2008-11-21 23:07:03vstinnersetrecipients: + vstinner, mbecker
2008-11-21 23:07:03vstinnersetmessageid: <1227308823.66.0.273110538.issue4329@psf.upfronthosting.co.za>
2008-11-21 23:07:03vstinnerlinkissue4329 messages
2008-11-21 23:07:02vstinnercreate