Spec-Zone.ru › ColdFusion

chr

Converts a numeric value to a UCS-2 character.

chr(number) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: asc

    Argument Reference

    number numeric
    Required

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

    Links more information about chr

    • Unicode UCS-2 Code Chart - Cheatsheet with all the UCS-2 characters and their hexadecimal(!) representation

    Examples
    Sample code invoking the chr function

    Character and value of Korean currency symbol ( unicode number 8361 )

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

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/chr

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API