# <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>](script.md)

```
<cfpageencoding
    charset=string
><!--- body ---></cfpageencoding>
```

# Attributes

| Attribute | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| charset | string | Yes | 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: -UTF-8 (recommended for most applications) -ISO-8859-1 (Latin-1) -Windows-1252 (Windows Western European). Example: charset="UTF-8" |  |

# Examples

*There are currently no examples for this tag.*






