PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Networking

URLDecode

Syntax

URLDecode <text>

Description

Decode a URL encoded string according to RFC2396.

Parameters

<text>

The text to be decoded.

Remarks

URL Encoding replaces unsafe ASCII characters with "%" followed by their hex equivalent. Safe characters are defined in RFC2396. They are the 7-bit ASCII alphanumerics and the mark characters "-_.!~*'()".

Note that when encoding form parameters for transmission to a webserver, spaces are generally replaced with plus signs (+) before URL encoding. Form parameters are name=value pairs separated by ampersands (&). Example: action=update&id=23&text=this+is+a+test. See also URLEncode

Example

decoded = URLDecode "Encode%20this%20text%20%3ctag%3e."

After execution of the above statement, decoded contains the string "Encode this text ."



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.