Bug#653099: ITP: liburi-encode-perl -- Perl module to encode and decode strings to URIs
On Fri, 2011-12-23 at 12:10 -0800, Don Armstrong wrote:
> On Fri, 23 Dec 2011, Ernesto Hernández-Novich wrote:
> > * Package name : liburi-encode-perl
> > Version : 0.04
> > Upstream Author : Mithun Ayachit <mithun@cpan.org>
> > * URL : http://search.cpan.org/dist/URI-Encode/
> > * License : Artistic
> > Programming Lang: Perl
> > Description : Perl module to encode and decode strings to URIs
> >
> > URI::Encode provides an easy method to encode strings (mainly URLs)
> > into a format which can be pasted into a plain text, so that those
> > links are 'clickable' by the person reading it.
> >
> > If you are looking for speed and want to encode reserved characters,
> > use URI::Escape::XS
>
> Why is anyone using URI::Encode instead of URI::Escape, which handles
> all of this, is faster to boot, and is in core? If you actually wanted
> its main feature, you'd just use:
>
> use URI::Escape qw(uri_escape_utf8);
> uri_escape_utf8($string,"^A-Za-z0-9\-\._~:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=");
I agree. I've packaged URI::Encode because it's a dependency for a
larger module (Facebook::Graph). I've already opened a bug upstream
suggesting that URI::Escape be used instead of URI::Encode.
--
Prof. Ernesto Hernández-Novich - MYS-220C - @iamemhn
Geek by nature, Linux by choice, Debian of course.
If you can't aptitude it, it isn't useful or doesn't exist.
GPG Key Fingerprint = 438C 49A2 A8C7 E7D7 1500 C507 96D6 A3D6 2F4C 85E3
Reply to: