Skip to content

Instantly share code, notes, and snippets.

@karrikas
Created October 4, 2016 08:26
Show Gist options
  • Select an option

  • Save karrikas/bee0607a20ccd7204984473d11a3bc55 to your computer and use it in GitHub Desktop.

Select an option

Save karrikas/bee0607a20ccd7204984473d11a3bc55 to your computer and use it in GitHub Desktop.
Know Ascii code of each character over a string in coldfusion
<cfargument name="testua" default="0">
<cfloop index="intChar" from="1" to="#Len( testua )#" step="1">
<cfset strChar = Mid( testua, intChar, 1 ) />
<cfdump var="[#intChar#:#asc(strChar)#:#strChar#]">
</cfloop>
<cfabort>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment