Lucee object methods reference

Object Method String.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.
String.uRLEncodedFormat([string charset,[boolean force]]):string

Category

string,formatting

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
charset string  No utf-8 The character encoding in which the string is encoded.
force boolean  No true