encodeParameter (XSPUrl - JavaScript)

Encodes a parameter.

Defined in

XSPUrl (JavaScript)

Syntax

encodeParameter(param:string) : string

encodeParameter(param:string, enc:string) : string

Parameters Description
param A string.
enc The name of the encoding scheme.
Return value Description
string The parameter encoded in application/w-www-form-urlencoded format.

Usage

The encoding determines what characters are represented by consecutive sequences of the form %xy.