> 5. specify your page encoding <cfcontent type = "text/html; charset=UTF-8">
>
arent these the default settings for cfmx and cfmx7 ?
On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Matthew Walker wrote:
> I'd recommend not trying to solve it on a case by case basis as there'll always be another character that isn't working. Generally, the trick is to ensure everything is Unicode.
>
> 1. use nvarchar fields instead of varchar (if it's SQL Server)
> 2. use cfqueryparam
> 3. ensure Unicode is enabled in your datasource
> 4. set the encoding of your scopes with <cfset setEncoding("URL", "UTF-8")><cfset setEncoding("FORM", "UTF-8")>
> 5. specify your page encoding <cfcontent type = "text/html; charset=UTF-8">
>
> Um... anything else?
Nice summary.. I think HTML encoding needs to be UTF-8 as well.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
if xhtml
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> if
html
Also if you're running Apache you can force a specific encoding.
-- geoff
http://www.daemon.com.au/
Don't miss webDU: 2-Days of CF magic
2-3 March 2006, Sydney
http://www.webdu.com.au/
