Lucee Function Reference

setencoding()

Sets the character encoding (character set) of Form and URL
scope variable values; used when the character encoding of
the input to a form, or the character encoding of a URL, is
not in UTF-8 encoding.

Example

setencoding(string scope,string encoding):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
scope string  Yes url, form  
encoding string  Yes The character encoding in which text in the scope variables is encoded