Chapter Contents

Previous

Next
URLENCODE

URLENCODE



Returns a string that was encoded using the URL escape syntax

Category: Web Tools


Syntax
Arguments
Details
Examples
See Also

Syntax

URLENCODE(argument)

Arguments

argument
specifies any character expression.


Details

The URLENCODE function encodes characters that may otherwise be significant when used in a URL. This function encodes all characters except for the following:

Note:   The encoded string may be longer than the original string. Ensure that you consider the additional length when you use this function.   [cautionend]


Examples

SAS Statements Results
x1=urlencode ('abc def');
put x1;
  
abc%20def
x2=urlencode ('why?');
put x2;
  
why%3F
x3=urlencode ('ABC#1');
put x3;
  
ABC%231


See Also

Function:

URLDECODE


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.