Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2015 14:42
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 anonymous/71a7089e6b23377c6768 to your computer and use it in GitHub Desktop.
Save anonymous/71a7089e6b23377c6768 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset key="6578616d706c65206865782064617461" />
<cfset result = binarydecode(key, "hex") />
<cfoutput>
<p>Correct:
#toString(result)#
</p>
<p>Correct:
#CharsetEncode(result,'utf-8')#
</p>
<p>Incorrect:
#result.toString()#
</p>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment