URLDECODE Function


Returns a string that was decoded using the URL escape syntax

Category: Web Tools

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 'TRANTAB= System Option' on page 1617.

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 Function' on page 868




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net