UTF-8 page encoding is not coming out true
Hello, I'm trying to get my site up to speed with UTF-8 and it's really giving me a heck of a time doing so. I've checked and double-checked and everything that I can see appears to say the file is to be decoded as UTF-8.
- Inside my text editor, CFEclipse, the file encoding is set to UTF-8.
- In application.cfc, I have
<cfcomponent output="false">
<!--- Force encoding (don't trust default) --->
<!--- Note to adobe forum-goers, this is not inside a cffunction, only inside the cfcomponent tag. --->
<cfprocessingdirective pageencoding="utf-8">
<cfcontent type="text/html; charset=UTF-8">
<cfset SetEncoding("URL", "UTF-8")>
<cfset SetEncoding("Form", "UTF-8")>
...
</cfcomponent> - In each page it uses valid HTML5, like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
Even so, smart quotes end up looking like this: “ and � and other characters like em dashes and accented characters share a similar fate.
I checked the page properties (right click→page info) , and it says the page is in UTF-8. I've pasted this bit of code into the page, and it outputs utf-8: <cfset theEncoding = getEncoding("URL")><cfoutput>#theEncoding#</cfoutput>
What more could possibly need to be done for this to be output by the browser as true UTF-8?
