---
schema_version: "1"
id: 2eea2ce40317fb64afe71bc1cf56210c31d70a26a15e58292cb98d20e0c59363
title: fromCharCode
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-strings-functions-fromcharcode.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-strings-functions-fromcharcode
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6a8282014cd4b2bc0a708a0563e0d94ca152a1b257d2f0f35e88d628df4ca5e1
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# fromCharCode

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## fromCharCode(charCode: Number): String

Returns a character that matches the specified Unicode.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>charCode</code></p></td><td><p>The input Unicode (a <code>Number</code>).</p></td></tr></tbody></table>

### Example

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

#### Source

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

#### Output

```JSON
{ "fromCharCode": "u" }
```

## fromCharCode(charCode: Null): Null

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

_Introduced in DataWeave version 2.4.0._
