Hi Dave,
I am guessing here, this sounds like on ei had a while back...

For some strange reason ISO needs to be in uppercase...

<cfprocessingdirective pageencoding="ISO-8859-1">
<cfset setEncoding("URL","ISO-8859-1")>
<cfset setEncoding("FORM","ISO-8859-1")>
<cfcontent type="text/html; charset=ISO-8859-1">

I hope this helps...

L.
-----Original Message-----
From: Dave Phipps [mailto:[EMAIL PROTECTED] 
Sent: 27 October 2003 14:43
To: ColdFusion User group
Subject: [ cf-dev ] Encoding strangeness in MX6.1


Hi,

I know that MX is now Unicode and as such text is encoded as UTF-8 by 
default but can anyone explain this:

I am using fusebox so all calls go via index.cfm.

In my index.cfm I am using the following to change the encoding to iso8859-1

<cfprocessingdirective pageencoding="iso-8859-1">
<cfset setEncoding("URL","iso-8859-1")>
<cfset setEncoding("FORM","iso-8859-1")>
<cfcontent type="text/html; charset=iso-8859-1">

Then I have a query which grabs some text from the db and I then output 
that so I get things like the following:

Trading Faces presents ?Creaking Shadows?

Which should read:

Trading Faces presents "Creaking Shadows"

When I look at the db I can see that the punctuation is correct yet the 
output is always incorrect no matter what encoding I set.

Where am I going wrong or what have I missed.  The db is MySQL 4 on Linux 
and the fields are varchar.

Cheers

Dave



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] For human
help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to