Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): e-domizil License Team / e-domizil License Team (Alexander Hass)
Created: 05/09/2016
Components: Language, String Functions
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Win 2012 Server x64
Vote Count: 0
Problem Description: If you replace a string with "ß" (german special char) this replace fails and ends with some brackets and the number
Steps to Reproduce:
<cfprocessingdirective pageencoding = "utf-8" />
SPECIAL CHAR "ß" FAILS:<br/>
<cfset local.text ="ß {1}r" />
<cfset local.testnc = ReplaceNoCase(local.text,"{1}","TEXT","all") /> <!--- -> Incorrect result 'ß {TEXT' --->
<cfset local.test = Replace(local.text,"{1}","TEXT","all") /> <!--- -> Correct result 'ß TEXT' --->
<cfoutput>ReplaceNoCase: "#local.testnc#" (FAIL)</cfoutput><br>
<cfoutput>Replace: #local.test# (WORKS)</cfoutput><br />
<br />
WORKS:<br>
<cfset local.text ="a {1}r" />
<cfset local.testnc = ReplaceNoCase(local.text,"{1}","TEXT","all") /> <!--- -> Correct result 'a TEXT' --->
Other special chars:</br>
<cfset local.text ="äüö {1}r" />
<cfset local.testnc = ReplaceNoCase(local.text,"{1}","TEXT","all") /> <!--- -> Correct result 'äüö TEXT' --->
<cfoutput>ReplaceNoCase: #local.testnc#</cfoutput><br>
Actual Result:
Expected Result:
With "ß" we expect this string to me 'ß TEXT'
Any Workarounds: NO workaround known.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4150357
External Customer Info:
External Company:
External Customer Name: Firstname Lastname
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: