tracker issue : CF-3346990

select a category, or use search below
(searches all categories and all time range)
Title:

cfheader and cfcontent both change how a doc file is rendered

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/Workaround

Reporter/Name(from Bugbase): Chris Phillips / Chris Phillips (cf_chris)

Created: 10/15/2012

Components: Language

Versions: 10.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: Final / 283314

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description:
We have our users save Word doc files "as htm" with special strings in them. They upload them to us as "Templates". We replace the special strings and serve the html content back out to the browser and tell them it's a ".doc" file. This has worked for years and multiple versions of CF.

Now with CF10 lots of our user's docs are coming over with a messed up "Â" character that should not be there. If I remove both cfheader and cfcontent it is fine. If I add either back, it is messed up.

Steps to Reproduce:
Put the attached htm and cfm files in a folder. Run the CFM. You should be prompted to open a word doc.

Actual Result: In CF10, it will have strange characters.

Expected Result: In CF9 it will be a perfectly normal word doc.

Any Workarounds: No. It's broken.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3346990

External Customer Info:
External Company:  
External Customer Name: cf_chris
External Customer Email:  
External Test Config: My Hardware and Environment details:

Version ColdFusion 10,282913

Update Level 02

Operating System Windows 7

Update Level /I:/ColdFusion/InstanceA1/lib/updates/hf1000-3332326.jar

Attachments:

  1. October 16, 2012 00:00:00: 1_WordCharacterProblem.zip
  2. October 16, 2012 00:00:00: 2_CF9_Word_File.png
  3. October 16, 2012 00:00:00: 3_CF10_Word_File.png

Comments:

Adding charset=iso-8859-1" in the cfcontent tag fixes this issue : <cfcontent type="application/msword;charset=iso-8859-1" reset="true"/>
Comment by Akhila K.
17546 | February 22, 2014 11:36:11 AM GMT