Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Spiros Aggelopoulos / Spiros Aggelopoulos ()
Created: 03/08/2017
Components: File Management, CFFile
Versions: 2016,11.0,10.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: ColdFusion 2016 / 2018,0,0,303845
Priority/Frequency: Normal /
Locale/System: / Win 2008 Server R2
Vote Count: 0
Problem Description:
each time use the cffile to write to a file the function reproduce the BOM singature.
Steps to Reproduce:
run this code :
<cffile action="write" file="C:\\test.txt" charset="utf-16" output="line01">
<cffile action="append" file="C:\test.txt" output="line 02" charset="utf-16" >
<cffile action="append" file="C:\test.txt" output="line 03" charset="utf-16" >
Actual Result:
the contents of the file (hex editor)
FE FF 00 6C 00 69 00 6E 00 65 00 30 00 31 00 0D 00 0A FE FF 00 6C 00 69 00 6E 00 65 00 20 00 30 00 32 00 0D 00 0A FE FF 00 6C 00 69 00 6E 00 65 00 20 00 30 00 33 00 0D 00 0A
the bytes FE FF represents the BOM singature
Expected Result:
The BOM must apears at the start of text file
Any Workarounds:
Attachments:
Comments: