Try whacking "useUnicode=true&characterEncoding=ISO8859_1" without the
quotes into the 'Append to all queries' on the advanced options of your ODBC
in CF Admin, this worked a treat for me- I read as to what MX was doing
differently, but can't dig up the URL....

-----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]
DISCLAIMER: This e-mail is confidential and may also be legally privileged.
If you are not the intended recipient, use of the information contained in
this e-mail (including disclosure, copying or distribution) is prohibited
and may be unlawful.  Please inform the sender and delete the message
immediately from your system.  This e-mail is attributed to the sender and
may not necessarily reflect the views of the Patsystems Group and no member
of the Patsystems Group accepts any liability for any action taken in
reliance on the contents of this e-mail (other than where it has a legal or
regulatory obligation to do so) or for the consequences of any computer
viruses which may have been transmitted by this e-mail. The Patsystems Group
comprises Patsystems plc and its subsidiary group of companies.

-- 
** 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