tracker issue : CF-4204292

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

ReplaceNoCase doesn't properly handle 2-byte characters (emojis)

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): CHRIS Z. / ()

Created: 05/06/2019

Components: Language

Versions: 2018

Failure Type: Data Corruption

Found In Build/Fixed In Build: 2018 Update 3 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2016

Vote Count: 3

Problem Description:
Strings that contain emojis (and presumably other 2-byte characters) cause ReplaceNoCase (and presumably other Replace functions) to be off

Steps to Reproduce:

Code works on CF 11

Seems related to these two bugs from CF 2016 (both of which are marked "Closed"):



Is there a timeline for this being fixed? It's preventing us from migrating from CF11 to CF2018 and CF11 is no longer supported. Thanks.
Comment by CHRIS Z.
30729 | May 14, 2019 03:19:22 PM GMT
Weirdly it seems to work fine with ReReplaceNoCase in ACF2018: Example:
Comment by John W.
30851 | May 30, 2019 08:21:24 AM GMT
I noticed that too. Looking at the docs, they changed the 3rd argument for ReplaceNoCase to a callback. I'm guessing that was the breaking change. (REReplaceNoCase doesn't use the callback)
Comment by CHRIS Z.
30855 | May 30, 2019 01:54:44 PM GMT