Lucee object methods reference

Object Method String.URLEncode

Encodes a string to be URL-safe according to the application/x-www-form-urlencoded MIME format
String.URLEncode([string charset,[boolean force]]):string

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 World Wide Web Consortium Recommendation states that UTF-8 should be used as per
https://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars - Using different charsets may cause
incompatibilities with other systems.
force boolean  No true If false, then the string will not be encoded if it does not contain unsafe characters.