Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Created October 22, 2010 04: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 Zoramite/639945 to your computer and use it in GitHub Desktop.
Save Zoramite/639945 to your computer and use it in GitHub Desktop.
Testing the calculation of the byte size of a string in Railo.
<cfoutput>
<cfset temp = createUUID() />
<div>
UUID: #temp#
</div>
<div>
Size of UUID: #sizeOf(temp)#
</div>
<cfset smaller = left(temp, 8) />
<div>
Size of first 8 of UUID: #sizeOf(smaller)#
</div>
<cfset smaller = left(temp, 4) />
<div>
Size of first 4 of UUID: #sizeOf(smaller)#
</div>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment