Skip Menu |

This queue is for tickets about the MIME-Base64-URLSafe CPAN distribution.

Report information
The Basics
Id: 36002
Status: new
Priority: 0/
Queue: MIME-Base64-URLSafe

People
Owner: Nobody in particular
Requestors: b-hooper [...] so-netm3.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: documentation bug?
Date: Mon, 19 May 2008 19:01:54 +0900
To: bug-MIME-Base64-URLSafe [...] rt.cpan.org
From: Brian Takashi Hooper <b-hooper [...] so-netm3.com>
Hi there, In reading the documentation to MIME::Base64::URLSafe, I noticed it says: "Perl version of Python's URL-safe base64 codec" However, this statement is a bit misleading since the Python version does not drop trailing equals signs. Python documentation for 2.5 instead says: "urlsafe_b64encode(s) Encode string s using a URL-safe alphabet, which substitutes - instead of + and _ instead of / in the standard Base64 alphabet." for example: Show quoted text
>>> import base64 >>> base64.urlsafe_b64encode
<function urlsafe_b64encode at 0xb7ef5e64> Show quoted text
>>> base64.urlsafe_b64encode('Hello World')
'SGVsbG8gV29ybGQ=' FYI. -Brian