encodeURIComponent Method (Windows Scripting - JScript)
This page is specific to:.NET Framework Version:2.03.0
JScript
encodeURIComponent Method (Windows Scripting - JScript)

Encodes a text string as a valid component of a Uniform Resource Identifier (URI).

encodeURIComponent(encodedURIString)
Remarks

The required encodedURIString argument is a value representing an encoded URI component.

The encodeURIComponent method returns an encoded URI. If you pass the result to decodeURIComponent, the original string is returned. Because the encodeURIComponent method encodes all characters, be careful if the string represents a path such as /folder1/folder2/default.html. The slash characters will be encoded and will not be valid if sent as a request to a web server. Use the encodeURI method if the string contains more than a single URI component.

Applies To: Global Object (Windows Scripting - JScript)

Requirements

Version 5.5

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View