Skip to content

chr - Convert numeric Unicode into String

The chr function will convert a number, corresponding to a Unicode codepoint value, and render it out as a string.

Syntax

chr(number: number): string

Arguments

Name Type Required Description
number number true The numeric value to convert to its corresponding unicode value

Example - Rendering encoded non-standard characters

Consider the following document:

{
    "emoji_numeric_value": 10084
}

We can take the numeric value and render it in its true unicode form:

create emoji_value from chr(emoji_numeric_value)

This will result in a document that looks like this:

{
    emoji_numeric_value: 10084,
    emoji_value: "❤"
}