Welcome Forums Aliases urlencode – Encodes characters in a website address

This topic contains 0 replies, has 1 voice, and was last updated by  bleepy 2 years, 7 months ago.

  • Author
    Posts
  • #443

    bleepy
    Keymaster

    Description:
    Converts a string into a URL-safe string, e.g. space into %20 etc.

    Usage:
    $urlencode(string)

    Example:
    $urlencode(http://www.dalnethd.org/index.php)

    Code:
    alias urlencode { return $regsubex($1,/(\W)/g,% $+ $base($asc(\t),10,16,2)) }

The forum ‘Aliases’ is closed to new topics and replies.