EncodeURLComponent

From Xojo Documentation
Jump to: navigation, search
Method

Encodes the components of a URL.


Syntax

result=EncodeURLComponent(str)

Part Type Description
result String The encoded string.
str String The string to be encoded.

Notes

A valid URL is a series of components that are separated by component separators. They are the ".", "/", ";", "&", and "?". EncodeURLComponent works with each component part of the URL. It assumes that any component separators in a component represent text and must be encoded. The reverse operation is done by DecodeURLComponent.

Examples

Here is an example of how an embedded component separator is encoded.

Dim s As String
s = EncodeURLComponent("www.bob&jane.com")
// s is "www.bob%26jane.com"

See Also

DecodeURLComponent.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About