[top][index]
search for:

unhex -- translate a URL

unhex s -- translates a string provided as the trailing part of a URL by a web browser.

A web browser sometimes has to put special characters into a URL. So such characters do not interfere with other things, they are translated into a special form. For example, each space is replaced by + and various other characters (including / and %) are replaced by % followed by two hex digits giving the numerical code of the character in hexadecimal notation.

The purpose of unhex is to undo such translations, providing the original string.

i1 : unhex "abcd+efgh%2B"

o1 = abcd efgh+


[top][index]
search for: