Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Scripting
VBScript
 Escape Function

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
Visual Basic Scripting Edition
Escape Function

Encodes a string so it contains only ASCII characters.

Escape(charString)
charString

Required. String expression to be encoded.

The Escape function returns a string (in Unicode format) that contains the contents of charString. All spaces, punctuation, accented characters, and other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. Unicode characters that have a value greater than 255 are stored using the %uxxxx format.

The string that the Escape function returns is suitable for transmission with many protocols, such as the HTTP protocol.

NoteNote:

Because the Escape function is not designed to create a valid uniform resource identifier (URI), it should not be used to encode URIs. The JScript encodeURI method may be used to encode URIs.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker