Contact Us 1-800-596-4880

fromCharCode

fromCharCode(charCode: Number): String

Returns a character that matches the specified Unicode.

Parameters

Name Description

charCode

The input Unicode (a Number).

Example

This example inputs the Unicode number 117 to return the character "u".

Source

%dw 2.0
import * from dw::core::Strings
output application/json
---
{
  "fromCharCode" : fromCharCode(117)
}

Output

{ "fromCharCode": "u" }

fromCharCode(charCode: Null): Null

Helper function that enables fromCharCode to work with a null value.

Introduced in DataWeave version 2.4.0.