Encode and decode URI strings as defined by RFC 3986
Perl6
Switch branches/tags
Nothing to show
Latest commit 937b890 Feb 23, 2017 @dnmfarrell committed on GitHub Merge pull request #11 from zoffixznet/patch-1
Add mandatory "perl" META field
Permalink
Failed to load latest commit information.
lib/URI Up version Nov 17, 2015
t Alter tests to ve UTF-8 Nov 17, 2015
LICENSE initial commit Nov 14, 2014
META.info Add mandatory "perl" META field Oct 26, 2016
README.pod decode components, or whole uris Sep 25, 2015

README.pod

URI::Encode

A Perl 6 module for encoding / decoding URIs

Synopsis

use URI::Encode;

# for encoding whole URIs, ignores reserved chars: #$&+,/:;=?@
my $encoded_uri = uri_encode('http://www.example.com/?name=john doe&age=54');

# encode every reserved char
my $encoded_uri_component = uri_encode_component('some text/to encode+ safely');

# remove percent encoding
my $decoded_uri = uri_decode(http://www.example.com/?name=john%20doe&age=54');

# provided for symmetry, is the same as decode_uri()
my $decoded_component = uri_decode_component('some%20text%2Fto%20%2B%20safely');

Author

David Farrell © 2015

License

FreeBSD - see LICENSE