---
title: setCharset
slug: campaign/docs/setcharset
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

**Type**: void

**Parameters**

| Name      | Type   | Value                                                                                                                                                 |
| --------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                                                                                     |
| mailingId | long   | ID of the mailing                                                                                                                                     |
| charset   | String | Character set to be used for all contents (subject + body) in ISO names<br /><br />If set to null, the client's default (usually ISO-8859-1) is used. |

**Return values**

- **Code structure**

```javascript
void setCharset(String sessionId, long mailingId, String charset)
```
