Ok, I've made my first attempt and it seems to be working well.  

I've added a cfprocessingdirective and cfcontent tags to the beginning of my 
file.

<cfprocessingdirective pageencoding="windows-1252" />

<cfcontent type="text/html; charset=windows-1252" reset="yes" /><!DOCTYPE html 
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

As well as the Content-Type meta tag in the html head section.

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />

Then in the form processing section of the page I have added a setEncoding 
function.

<cfset setEncoding("form","windows-1252")>

Next I added an encoding line to where the xml is built.
<cfxml variable="joe">
   <?xml version="1.0" encoding="windows-1252"?>

And finally, I have added charset parameters to my cffile tags.

<cffile action="write" charset="windows-1252" 
file="#getDirectoryFromPath(getCurrentTemplatePath())#\tinyMCE.xml" 
nameconflict="overwrite" 
output="#replace(toString(joe),'UTF-8','windows-1252')#">

<cffile action="read" charset="windows-1252" 
file="#getDirectoryFromPath(getCurrentTemplatePath())#\tinyMCE.xml" 
variable="foobar">

This all seems to be working, but is there anything I can added that would help 
in the stability of all this.  This was just a single page test case.  I am now 
off to apply these elements to all the pages of the full blown (albeit small) 
CMS tool.  

Any advanced warnings of potential 'gotchas' would be most appreciated.

TIA

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




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240990
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to