Hi....
   
  Well!As i mentioned yday, we have migrated from Coldfusion 5 to MX7 server.
   
  Now, my issue is:
   
  i got a Page where encoding has been set for this page dynamically.
  {
  ie in this page, include file which has got the code for encoding is put 
under <head> . Here actually encoding is defined, based on countries (this data 
is coming from database, which stores country codes & their resp encoding.)
  }
   
  So, now in MX7 the page doent pick the set encoding, instead it sets it to 
UTF-8. To resolve this,  i added :
   
  <cfprocessingdirective pageencoding="windows-1253" />
  which works fine.
  ---------------------------------------------------------------------------
  What if , if i want to put  <cfprocessingdirective> inside <cfif> block say:
   
  <cfset var="1">
  <cfif #var# EQ 1>
        <cfprocessingdirective pageencoding="windows-1253" />
  <cfelse>
        <cfprocessingdirective pageencoding="windows-1252" />
  </cfif>
   
  Well i read the MX Live Docs : it says
  
You cannot embed the tag within conditional logic, because the pageEncoding 
attribute is evaluated when ColdFusion compiles a page (not when it executes 
the page). For example, the following code has no effect at execution time, 
because the cfprocessingdirective tag has already been evaluated: 
<cfif dynEncoding is not "dynamic encoding is not possible">   
<cfprocessingdirective pageencoding=#dynEncoding#>  </cfif>   
  
If you have multiple cfprocessingdirective tags in one page that specify the 
pageEncoding attribute, they must all specify the same value; if not, 
ColdFusion throws an error.    
  Is there any other alternative for the above thing ? Pls suggest....
   
  --------------------------------------------------------------------
  Also, one more issue is if i put this <cfprocessingdirective 
pageencoding="windows-1252" /> in a page and include this page in my main page. 
Defaultly,  encoding is set as UTF-8.
   
  <cfprocessingdirective pageencoding="windows-1252" /> fails for include file.
  ------------------------------------------------------------------------
   
  Also, i tried giving <cfcontent type="text/html; charset=windows-1252">
  but it looks for a <meta>tag without which encoding isnt set.
  
If i need to give <meta> tag then whats the use of 
<cfcontent type="text/html; charset=windows-1252"> 
   
  ------------------------------------------------------------
  Please suggest for the above queries.
   
  Thanks & Regards,
  Veena

  

Ian Skinner <[EMAIL PROTECTED]> wrote:
  When setting encoding/character sets I tend to use all the following CF 
techniques.











.....


This maybe overkill, but I like to be thorough.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 | |
--------- Binary Soduko
| | |
---------

"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Server/message.cfm/messageid:6210
Subscription: http://www.houseoffusion.com/groups/CF-Server/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10

Reply via email to