Chapter Contents

Previous

Next
URLDECODE

URLDECODE



Returns a string that was decoded using the URL escape syntax

Category: Web Tools


Syntax
Arguments
Details
Examples
See Also

Syntax

URLDECODE(argument)

Arguments

argument
specifies any character expression that contains a URL escape sequence, which is a three character string of the form %nn.


Details

The URL escape syntax is used to hide characters that may otherwise be significant when used in a URL. URLDECODE also converts plus (+) characters to spaces.

Operating Environment Information:   In operating environments that use EBCDIC, SAS performs an extra translation step after it recognizes an escape sequence. The specified character is assumed to be an ASCII encoding. SAS uses the transport-to-local translation table to convert this character to an EBCDIC character in operating environments that use EBCDIC. For more information see <MAKR LINK> the TRANTAB= system option.   [cautionend]


Examples

SAS Statements Results
x1=urldecode ('abc+def');
put x1;
  
abc def
x2=urldecode ('why%3F');
put x2;
  
why?
x3=urldecode ('%41%42%43%23%31');
put x3;
  
ABC#1


See Also

Function:

URLENCODE


Chapter Contents

Previous

Next

Top of Page

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