Returns a string that was decoded using the URL escape syntax
Category: Web Tools
URLDECODE ( argument )
argument
specifies any character expression that contains a URL escape sequence, which is a three character string of the form %nn .
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.
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 |
Function:
'URLENCODE Function' on page 868