Message188786
| Author |
Lucas.Vella |
| Recipients |
Lucas.Vella |
| Date |
2013年05月09日.18:05:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1368122716.0.0.40098064467.issue17946@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As stated in RFC 3548:
Base encoding of data is used in many situations to store or transfer
data in environments that, perhaps for legacy reasons, are restricted
to only US-ASCII [9] data.
thus, I was surprised to see, when I used base64 for the first time in python 3, that the encodig result was bytes, not str. Well, if I am encoding something to base64, I am most certainly needing it as a printable ASCII string, not as an binary byte array.
Thus, I suggest that the output of:
base64.b64encode(data)
to be, instead, the output of:
base64.b64encode(data).decode('ascii') |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月09日 18:05:16 | Lucas.Vella | set | recipients:
+ Lucas.Vella |
| 2013年05月09日 18:05:16 | Lucas.Vella | set | messageid: <1368122716.0.0.40098064467.issue17946@psf.upfronthosting.co.za> |
| 2013年05月09日 18:05:15 | Lucas.Vella | link | issue17946 messages |
| 2013年05月09日 18:05:15 | Lucas.Vella | create |
|