Uri.escape default

H

Han Holl

Hi,

URI::UNSAFE is the default for url-encoding.
It's value is: /[^-_.!~*'()a-zA-Z\d;\/?:mad:&=+$,\[\]]/n

In the light of the following:

For worldwide interoperability, URIs have to be encoded uniformly. To map the
wide range of characters used worldwide into the 60 or so allowed characters
in a URI, a two-step process is used:

* Convert the character string into a sequence of bytes using the UTF-8
encoding
* Convert each byte that is not an ASCII letter or digit to %HH, where HH
is the hexadecimal value of the byte

(source: http://www.w3.org/International/O-URL-code.html)

I would expect something like /[^A-Za-z0-9]/ with maybe some obvious allowed
characters like . included.

Cheers,

Han Holl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,432
Latest member
GTRNorbert

Latest Threads

Top