URLEncode Method

Applies To   See Also  

In order for any URL string to conform to the specifications set out by the WC3 regarding URL strings this method must be used on all strings that will appear in a URL. (Returns String.)

Syntax

Set Text = Server.URLEncode (Str)

Parts

Text

The encoded string.

Str

The string to be encoded.

Remarks

All characters that cannot be displayed in a URL string will be encoded by placing the percentage sign symbol (%) before their corresponding ASCII number. Note if a parameter passed from one page to another using the question mark symbol is encoded, it will be decoded when the parameter is retrieved. That is, the encoding is transparent but can be seen in the browser's URL text box.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com