Converts a numeric value to a UCS-2 character.

chr(number) → returns string

Argument Reference

number numeric

The UCS-2 code value (a number in the range 0 - 65535)

Links more information about chr

Sample code invoking the chr 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