Welcome Forums Aliases urlencode – Encodes characters in a website address

Viewing 0 reply threads
  • Author
    Posts
    • #443
      Avatarbleepy
      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)) }

Viewing 0 reply threads
  • The forum ‘Aliases’ is closed to new topics and replies.