<cfpageencoding>
Specifies the character encoding used for the current template file. This tag is processed at compile time and must be placed at the root level of your template. It serves the same purpose as the pageEncoding attribute of cfprocessingdirective but in a dedicated tag format.
This tag may have a body.
This tag is also supported within <cfscript>
<cfpageencoding
charset=string
><!--- body --->[</cfpageencoding>]
| Attribute | Description |
|---|---|
charset
string, required
|
edit
Specifies the character encoding for the current template file. This must be a string literal corresponding to a valid character encoding (not a dynamic expression). Common encodings include:
Example: charset="UTF-8" |
Examples
editThere are currently no examples for this tag.
See also
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)