# Unicode Emails and New Lines in Custom Message

**URL:** <https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 12, 2024, 7:49pm UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553 "2024-08-12T19:49:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Reed.Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@David.Reed.Schmidt](https://forum.inductiveautomation.com/u/David.Reed.Schmidt)\
**Post date:** [August 12, 2024, 7:49pm UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553/1 "2024-08-12T19:49:08Z")

</div>

I'm attempting to create a custom message for use in an alarm pipeline. The message has French and English in it because the users are from Canada. The message will have to be in Unicode because there are a few special charactors in the French alphabet that English does not use. The problem is that I cannot create a line break with the unicode. The email arrives in the inbox like this:

> Étiquette d’alarme: Test Low, Priorité: (1), Est passé à (Active) à Mon Aug 12 19:39:09 UTC 2024 UCT Alarm label: Test Low,Priority: (1), transitioned to (Active) at Mon Aug 12 19:39:09 UTC 2024 UCT (Pour Usage Interne: Test Alarm/Test Low) (For Internal Use:Test Alarm/Test Low)

I'm creating the message through a list where each item in the list is a row of the email. I then join the list together with a deliminator in the middle. For example:

> message = u'/u2028'.join(messageList)

I've tried all the stops such as

> message = message.splitlines()

> message = u'\r\n'.join(messageList)

Any suggestions will be greatly welcomed and appreciated

---

<div class="post-metadata">

**Author:** ![automatisation](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@automatisation](https://forum.inductiveautomation.com/u/automatisation)\
**Post date:** [August 12, 2024, 9:29pm UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553/2 "2024-08-12T21:29:36Z")

</div>

You could use the html element `<br>` in your string each time you need a new line

---

<div class="post-metadata">

**Author:** ![David.Reed.Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@David.Reed.Schmidt](https://forum.inductiveautomation.com/u/David.Reed.Schmidt)\
**Post date:** [August 12, 2024, 11:22pm UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553/3 "2024-08-12T23:22:15Z")

</div>

Nope! Tried that. It will show   
 in the text. One of the issues is that the message block in the pipelines does not allow for flagging the text at html. That would solve the issue.

---

<div class="post-metadata">

**Author:** ![Herbie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/herbie/32/65288_2.png) [@Herbie](https://forum.inductiveautomation.com/u/Herbie)\
**Post date:** [August 13, 2024, 10:56am UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553/4 "2024-08-13T10:56:23Z")

</div>

You have an error on the format and I think you might need to try a different Unicode Character.

```python
message = u'/u2028'.join(messageList)

```

To this:

```python
message = u'\u000A'.join(messageList)

```

---

<div class="post-metadata">

**Author:** ![automatisation](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@automatisation](https://forum.inductiveautomation.com/u/automatisation)\
**Post date:** [August 13, 2024, 1:31pm UTC](https://forum.inductiveautomation.com/t/unicode-emails-and-new-lines-in-custom-message/94553/5 "2024-08-13T13:31:09Z")

</div>

> [@David.Reed.Schmidt](#):
>
> Nope! Tried that. It will show   
> in the text. One of the issues is that the message block in the pipelines does not allow for flagging the text at html. That would solve the issue.

You can flag the message as html using `<html>`

Example:

```python
<html>Line_1<br>Line_2</html>

```
