asc

Determines the ASCII value of a character.

asc(string) → returns numeric

Argument Reference

string string
Required

Examples
Sample code invoking the asc function

x = chr( 8361 ); 
 writeoutput( 'character: #x#' ); 
 x = asc( x ); 
 writeoutput( '<br>Unicode value: #x#');

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub