# Facing the issue about the Control Charcter email (Start of Text (STX) symbol)

**URL:** <https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423>\
**Category:** Blueprint and App Design\
**Tags:** enterprise-application-development, 8-4-6, case-management\
**Created:** [November 17, 2023, 2:52pm UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423 "2023-11-17T14:52:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [November 17, 2023, 2:52pm UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423/1 "2023-11-17T14:52:14Z")

</div>

Hi Pega and Team,

While entering the Case Description on the Case, Sometimes user is copying the data from the PDF/Word Document, When user is pasting the data into the Case Description Text Area Property, Some characters are automatically added/converted into the **email** (e-mail this is the original text) In between E and M Square box is added automatically. The Exact meaning of the Square Box is ␂ (Start of Text) and ASCII code: U+0002. It is causing issue in the external systems, The External System is not able to find this Character. It is throwing the error and It is not able to process the Cases Data.

 ![Control Charcter Error.jpg](https://pega1.discourse-cdn.com/pega/original/2X/e/e20c356d6a941983410209796d3586523a1101f1.jpeg)

**We have validated by using the Edit Validate Rule**.

But why this Control Character Adding/Control Character Converted automatically.

Do we have a thoughts on this?

**Thanks,**

**Ashok**

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [December 4, 2023, 2:09pm UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423/2 "2023-12-04T14:09:36Z")

</div>

@Bhumireddy When you copy and paste data into a text area property in Pega, control characters may be added due to the way the system handles newline characters. The newline is interpreted by the browser as ‘\r\n’ and counted as two characters. This is a standard behavior of text area fields in web applications, not just Pega. If you want to avoid this, you may need to implement a custom solution to strip these control characters during the paste operation.

See our support document:

[Troubleshooting Rich Text Editor issues](https://support.pega.com/support-doc/troubleshooting-rich-text-editor-issues)

[Copy-Paste issues with Microsoft Word and Excel](https://support.pega.com/support-doc/troubleshooting-rich-text-editor-issues#copy-paste-word-excel)

[Operating system and browser support for Copy-Paste with Microsoft Word and Excel](https://support.pega.com/support-doc/troubleshooting-rich-text-editor-issues#copy-paste-os-browser-word-excel)

---

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [December 5, 2023, 1:27pm UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423/3 "2023-12-05T13:27:36Z")

</div>

Hi @MarijeSchillern,

As we know new line it will be add automatically while pasting the data into the pega, But I am worrying about this **Start of Text character** (␂) It is one of the control character (␂).

**Thanks,**

**Ashok**

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [December 5, 2023, 4:37pm UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423/4 "2023-12-05T16:37:45Z")

</div>

@Bhumireddy it might be worth your while logging this as a support incident via the [MSP](https://msp.pega.com/).

Please let us know the INC here so that we can help track it.

---

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [December 13, 2023, 3:09am UTC](https://forums.pega.com/t/facing-the-issue-about-the-control-charcter-e-mail-start-of-text-stx-symbol/5423/5 "2023-12-13T03:09:41Z")

</div>

Hi @MarijeSchillern,

As I said in the question, we are validating it by using the edit validate rule for this kind of character.

![STX.jpg](https://pega1.discourse-cdn.com/pega/original/2X/f/f835ec7d0054a14c71fd470f1a1ecf49b6f5e920.jpeg)

below are the java code

```auto
for (int pos = 0, len = theValue.length(); pos < len; ++pos) 
{
  char c = theValue.charAt(pos);
  int ascii =(int)c;

if (ascii==2) // This is blocking the STX Symbol
    {
        theProperty.addMessage("Not Allowed Special Characters , Please Remove Special Characters in Between e and m ");
        return false;
     }
  }
return true;

```

**Thanks,**

**Ashok**
