cfprocessingdirective is a compiler directive. I don't think you can put it 
inside a CFIF like that.
 

 


From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Taco 
Fleur
Sent: Thursday, 30 August 2007 5:09 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Unable to reset the page encoding.


I have the following as the first bit of code in the onRequestEnd function, I'm 
getting a 
Unable to reset the page encoding. 
Error. Just wondering if anyone knows whats up?
I did find one entry in google about this, which suggested something about the 
encoding in Dreamweaver. 
I'm unsure though how to not have the settings in dreamweaver to affect 
anything, I just want to set the encoding with the code below.
Thanks in advance.
 
<cfswitch expression="#request.Document.getCharacterSet()#">
   <cfcase value="utf-8">
    <cfprocessingdirective pageencoding="utf-8">
   </cfcase>
   <cfcase value="iso-8859-1">
    <cfprocessingdirective pageencoding="iso-8859-1">
   </cfcase>
   <cfcase value="windows-1252">
    <cfprocessingdirective pageencoding="windows-1252"> 
   </cfcase>
   <cfcase value="us-ascii">
    <cfprocessingdirective pageencoding="us-ascii">
   </cfcase>
   <cfcase value="shift_jis">
    <cfprocessingdirective pageencoding="shift_jis"> 
   </cfcase>
   <cfcase value="iso-2022-jp">
    <cfprocessingdirective pageencoding="iso-2022-jp">
   </cfcase>
   <cfcase value="big5">
    <cfprocessingdirective pageencoding="big5"> 
   </cfcase>
  </cfswitch>

-- 
*** http://www.clickfind.com.au 
The new Australian search engine for businesses, products and services 
*** http://brisbane-web-design.pacificfox.com.au blog
*** Virtual and Dedicated Servers with MS SQL from $250 a month
*** Virtual and Dedicated Servers with registered version of ColdFusion from 
$350 a month 
*** ColdFusion licenses at the lowest price 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to