![]() Chapter Contents |
![]() Previous |
![]() Next |
| URLENCODE |
| Category: | Web Tools |
| Syntax | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| URLENCODE(argument) |
| 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]](../common/images/cautend.gif)
| 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:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.