urlencode

URL-encode a String according to RFC 1738.


Syntax


Parameters

  • String subject - The String to be URL-encoded.


Result

  • String - The encoded String.

Returns subject with all non-alphanumeric characters except underscores (_) replaced by percentage signs (%) followed by a hexadecimal character code.