Runtime verified Differs from official docs Test scripts included

Returns the Unicode character for a character code, optionally repeated.

Syntax

{{char code [repeated]}}

Returns string.

Parameters

Name Type Required Description
code number Yes Unicode character code in decimal.
repeated integer No How many times to repeat the character. Defaults to 1.

Example

Tested in a Marketing Cloud Next email on 2026-11-22:

  • {{char 65602 1}} breaks the email preview (HTTP 500). The documented result is B.
  • {{char 65 3}} renders AAA, as documented.
Show Next test script
<!-- Marketing Cloud Next test script for the char helper. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[AAA] got=[{{char 65 3}}]</p>

Show calls that fail in Next (one email each)
<!-- Run each call below in its own Next email: one of them in a combined email
     would stop the whole preview or block the save. -->

<!-- email 1: expect that the email saves, but the preview fails (HTTP 500) -->
{{char 65602 1}}

Differs from official docs

  • The reference says a code outside 0-65535 is wrapped into range with modulo 65536, and gives {{char 65602 1}} returning B as its own example. In Marketing Cloud Next (tested 2026-11-22): {{char 65602 1}} let the email save and publish, but the preview then failed with HTTP 500 and no message. Codes inside the range work: {{char 65 3}} rendered AAA. Details

Marketing Cloud Next

See also