URLEncodedFormat

Generates a URL-encoded string.

For example, it replaces spaces with %20, and non-alphanumeric characters with equivalent hexadecimal escape sequences. Passes arbitrary strings within a URL.

Method Signature

URLEncodedFormat(string=[any])

Arguments

Argument
Type
Required
Description
Default

string

any

true

String to encode for usage within a URL.

Examples

Simple urlEncodedFormat Example

It returns url encoded string.

Run Example

writeOutput( URLEncodedFormat( "This is a string with special character." ) );

Result: This%20is%20string%20with%20special%20character%2E

Additional Examples

Run Example

Last updated

Was this helpful?