our new application version runs on Lucee and Linux (the old one was on CF and Windows). The program part that creates an Excel document works but all German umlaut characters are wrong (ü für ü).
Not sure where to put a charset specification. Putting it into cfheader doesn’t change anything.
<cfheader name="Content-Type" value="application/vnd.ms-excel" charset="Windows-1252">
<cfheader name="Content-Disposition" value="attachment; filename=#myfilename#" charset="Windows-1252">
<cfheader name="Content-Length" value="#len(exceloutput)#" charset="Windows-1252">
<cfcontent type="application/msexcel" reset="true" />
<cfoutput>#exceloutput# including ä ö ü Ä Ö Ü ß</cfoutput>
Notepad++ did not detect any encoding in the CFM source of cfpageencoding.cfm, so I changed it to UTF-8. That didn’t change anything - the code output that was wrapped in cfpageencoding disappear.
Maybe some misunderstanding on my side? can cfpageencoding be used for parts of a page? maybe not