LSEuroCurrencyFormat & CFFile problem
Posted on 2003-02-28
LSEuroCurrencyFormat appears to work perfectly for me when during typical conditions when I display the results using <cfoutput>. However, when I write the results to a file using CFFile, it displays a "? " instead of the expected Euro Symbol.
Note the following:
1) I'm using CFMX. I have run both updaters.
2) LSCurrencyFormat works fine both when outputed using CFOutput as well as using CFFile.
Here is sample code which reproduces my error:
<!--- You'll want to change this for your environment --->
<cfset absolute_file_root = "c:\webs\sandbox\">
<cfloop index="idx" list="English (UK),English (US),Dutch (Standard),French (Standard),German (Standard),Italian (Standard)">
<cfset temp = setlocale(idx)>
<!--- Results display as expected here. --->
<!--- Next two lines create unique file name --->
<cfset timestamp = DateFormat(now(),"yyyymmdd") & TimeFormat(now(),"HHmmss")>
<cfset filename= "test_" & timestamp & ".htm">
<!--- Results don't display as expected here. --->
<cffile action="WRITE" file="#absolute_file_root#Temp\#filename#" output="#results#" addnewline="No">