[issue24422] base64 not encode correctly

2015-06-10 Thread Ezio Melotti
Ezio Melotti added the comment: No, this is expected. See http://en.wikipedia.org/wiki/Base64#Padding -- nosy: +ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue24422] base64 not encode correctly

2015-06-10 Thread Hector Cloud
New submission from Hector Cloud: I use Python 3.4.0 now. But its base64 encoding is not as expected. import base64 ascii = base64.b64encode(u"YAU-interview-revised20120921".encode(), b'-_') print(ascii) The result is b'WUFVLWludGVydmlldy1