unicodecoldfusion

Coldfusion page display issue with First Nations/Indigenous characters/fonts (unicode?)


When I save the following content as a .html file, it renders the characters properly when I save the same file with a .cfm file extensions it renders it with odd characters.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
Tḱemlúps te Secwépemc territory
</body>
</html>

Is there something that needs to be configured on the Coldfusion to make it work? It currently looks like this saved as a .cfm file:

enter image description here

Looks like this saved as a .html file:

enter image description here

Is there something I am missing?


Solution

  • <cfprocessingdirective pageencoding="utf-8">
    

    Use this in the cfm page.