README

URI::Encode

A Raku 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 uri_decode()
my $decoded_component = uri_decode_component('some%20text%2Fto%20%2B%20safely');

See also

URI is another implementation that covers this area, including encoding and decoding of URIs.

Author

David Farrell, 2015; lately maintained by the Raku community adoption center.

License

FreeBSD - see LICENSE

URI::Encode v0.09

Encode and decode URIs according to RFC 3986

Authors

  • David Farrell
  • Raku community

License

Dependencies

Test Dependencies

Provides

  • URI::Encode

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.