Name
Unescape function
Syntax
Unescape(string)string
Use: Required
Data Type: String
An encoded string
Return Value
A string variant containing the decoded version of
string.
Description
Decodes a URL-encoded or HTML-encoded string.
Rules at a Glance
Replaces all encoded characters with their corresponding
characters. Encoded values in the form of % xx are
replaced with their corresponding ASCII characters, while values in
the form %u
xxxx are replaced with their
corresponding Unicode characters.
Programming Notes
The Unescape function is not documented in the VBScript documentation.
The function corresponds to the JScript Unescape method.
If
stringhas no encoded characters, the function merely returnsstringunchanged.All encoded characters in the form
%xxare replaced with their equivalent ASCII strings.All encoded characters in the form
%uxxxxare replaced with their equivalent Unicode character strings.
VB/VBA Differences
This function is not supported in VBA.
See Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access