tracker issue : CF-4198378

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

"Detected Character encoding is UTF-8" log entries in application.log

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Spiros Aggelopoulos / Spiros Aggelopoulos ()

Created: 03/01/2017

Components: Administrator

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: ColdFusion 2016 / 307634

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Windows 10 64 bit

Vote Count: 0

Problem Description:
the application.log file include a lot of entries with text "Detected Character encoding is UTF-8 " . what is the source o this entries and if exist a way not log entries like this.
Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

Attachments:

  1. June 01, 2017 00:00:00: file.ini

Comments:

The string "Detected Character encoding is..." is entered into the application.log, when the code internally calls the getreader() function in the 'EncodingDetector' class, which detects the type of encoding for an inputstream. Could you please attach the exact lines of code which is leading to the entry of this string in the logs, so that we can check what is triggering this. Thanks!
Comment by S P.
1145 | March 15, 2017 12:42:47 PM GMT
After some tests i foundthat the specific log entry happens each time the GetProfileString() function try to read a ini file with BOM signature. <cfset configFile = "c:\temp\file.ini" > <cfset property = GetProfileString(configFile,"application","property" )> * see atachment file file.ini A workaround is to remove the BOM bytes from file Thanks
Comment by Spiros A.
1146 | June 01, 2017 11:28:08 AM GMT