Version: v0.8.1 - Beta.  We welcome contributors & feedback.

String.unicodeToChar

String.unicodeToChar($code) -> string

Description

Returns a single character for the given Unicode character code.

This is the opposite of charToUnicode.

String.unicodeToChar(84)      //= 'T'
String.unicodeToChar(104)     //= 'h'
String.unicodeToChar(33333)   //= '舵'

// With hex digits...
String.unicodeToChar(0x1E6A)   //= 'Ṫ'
String.unicodeToChar(0x03A9)   //= 'Ω'
String.unicodeToChar(0x046C)   //= 'Ѭ'

See Also