URLEncode

encode a url

Returns: string

Usage

URLEncode( string [, charset [, force ] ] )

Arguments

Argument Description Default
string
(string, required)
charset
(string, optional)

utf-8

force
(boolean, optional)

true

Examples

url_string = "https://dev.lucee.org/t/welcome-to-lucee-dev/2064";
dump(URLEncode(url_string)); // https%3A%2F%2Fdev%2Elucee%2Eorg%2Ft%2Fwelcome%2Dto%2Dlucee%2Ddev%2F2064