Created
October 16, 2019 21:58
-
-
Save trycf/18cd50e2ee20e9598d5a40ea08311369 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
uppercase = '{"foo": "\u000B"}'; // does not work :( | |
lowercase = '{"foo": "\u000b"}'; // works as expected :) | |
uppercase = DeserializeJSON(uppercase); | |
lowercase = DeserializeJSON(lowercase); | |
if (asc(uppercase.foo) != asc(lowercase.foo)) { | |
writeoutput("Fail: case sensitivity should not matter for basic multilingual plane values"); | |
} | |
writedump(var=uppercase, label="uppercase"); | |
writedump(var=lowercase, label="lowercase"); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment