Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/18cd50e2ee20e9598d5a40ea08311369 to your computer and use it in GitHub Desktop.
Save trycf/18cd50e2ee20e9598d5a40ea08311369 to your computer and use it in GitHub Desktop.
TryCF Gist
<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