Message245123
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'WUFVLWludGVydmlldy1yZXZpc2VkMjAxMjA5MjE='. There is a character '=' at the end which is not expected. In my opinion, the result should contain characters [A-Za-z0-9] and '-_'. The '=' should not be in the encoding result.
Is it a bug? |
|
Date |
User |
Action |
Args |
2015-06-10 09:56:19 | Hector Cloud | set | recipients:
+ Hector Cloud |
2015-06-10 09:56:19 | Hector Cloud | set | messageid: <1433930179.84.0.22171571246.issue24422@psf.upfronthosting.co.za> |
2015-06-10 09:56:19 | Hector Cloud | link | issue24422 messages |
2015-06-10 09:56:19 | Hector Cloud | create | |
|