Converts a numeric value to a UCS-2 character.
A character with the specified UCS-2 character code.
Chr(number)
ColdFusion MX: Changed Unicode support: ColdFusion supports the Java UCS-2 representation of Unicode characters, up to a value of 65535. (Earlier releases supported 1-255.)
Parameter |
Description |
|---|---|
number |
A value (a number in the range 0 - 65535, inclusive) |
The values 0 - 31 are standard, nonprintable codes. For example:
The two-character string Chr(13) & Chr(10)returns a Windows newline
Note: For a complete list of the Unicode characters and their codes, see www.unicode.org/charts/ |
<cfscript>
x = chr(0500);
writeOutput('character: #x#');
x = asc(x);
writeOutput('<br>Unicode value: #x#');
</cfscript>
Sign in to your account