URI::Escape 1.35 review

Download
by rbytes.net on

URI::Escape is a Perl module to escape and unescape unsafe characters. SYNOPSIS use URI::Escape; $safe = uri_escape("10% is

License: Perl Artistic License
File size: 93K
Developer: Gisle Aas
0 stars award from rbytes.net

URI::Escape is a Perl module to escape and unescape unsafe characters.

SYNOPSIS

use URI::Escape;
$safe = uri_escape("10% is enoughn");
$verysafe = uri_escape("foo", "-377");
$str = uri_unescape($safe);

This module provides functions to escape and unescape URI strings as defined by RFC 2396 (and updated by RFC 2732). A URI consists of a restricted set of characters, denoted as uric in RFC 2396. The restricted set of characters consists of digits, letters, and a few graphic symbols chosen from those common to most of the character encodings and input facilities available to Internet users:

"A" .. "Z", "a" .. "z", "0" .. "9",
";", "/", "?", ":", "@", "&", "=", "+", "$", ",", "[", "]", # reserved
"-", "_", ".", "!", "~", "*", "'", "(", ")"

In addition, any byte (octet) can be represented in a URI by an escape sequence: a triplet consisting of the character "%" followed by two hexadecimal digits. A byte can also be represented directly by a character, using the US-ASCII character for that octet (iff the character is part of uric).

Some of the uric characters are reserved for use as delimiters or as part of certain URI components. These must be escaped if they are to be treated as ordinary data. Read RFC 2396 for further details.

Requirements:
Perl

URI::Escape 1.35 keywords