Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8802567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:07:08+00:00 2026-06-14T01:07:08+00:00

EDIT: Please visit here: Flex textArea remove/replace invalid little squares Seems to be the

  • 0

EDIT:

Please visit here:

Flex textArea remove/replace invalid little squares

Seems to be the issue & need to find a solution for this.

ORIGINAL:

We have an application where users can create an email message & send it to different users. We create the email message as an XML message (sender, destination, subject, body, etc.) & put it on the queue.

Another application picks up the message, parses it & sends out the emails. We have no control over it.

Now the problem is during testing, our tester copied/paste some text from Word & used it. Now that probably has some invalid characters (on new line or tab) that is failing in the parser. The error is :

Invalid character in attribute value BODY (Unicode: 0x1A) 

So now we need to prevent sending these invalid chars. So I tried using textArea restrict. Something like this on creationComplete:

contentTextArea.restrict = "A-Z a-z 0-9 .,!@#$%*-+[]{}()/' \u2424\\";

But does not work. When i remove \u2424\ it probably works, but it takes out all new lines. So do I need to use regex replace?

Any help on this would be appreciated.

The text tried was:

One area where the applications differ greatly is security.  Adding or removing a Permission within a Role does not require a deployment, simply a ‘data fix’.

During development it was communicated that the audience of users .  As such there was no mechanism constructed to migrate between the two systems.  The purpose of this document is to outline two strategies for bring the user base between the two applications into sync.
 

There are tabs/new lines, etc. on this text.

Thanks so much

Harish

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:07:10+00:00Added an answer on June 14, 2026 at 1:07 am

    I was able to handle it by using the textArea changingHandler to allow only certain characters:

    if (event.operation is PasteOperation)
        {
            event.preventDefault();
            var txt:String = Clipboard.generalClipboard.getData(ClipboardFormats.TEXT_FORMAT).
                            toString().replace(/[^A-Za-z0-9\s$%&*!@-_().]/ig, "");
                 ......
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit my code to make it work please. Edited for latest version. Here is
PLEASE SEE THE EDIT BELOW, THE REPORT SEEMS TO USE CACHED DATA? I cant
What exactly does 'use 5.014' enable? Please, someone copy&paste here, because i was not
To keep things brief I need to direct you to my website. Please visit
LATER EDIT: Please mention not only game programming books, but also more scientific/simulation oriented
Is it possible to pass the coloumn name also like a variable.Please edit this
I'm not sure what kind of terminology to use in this so please edit
[EDIT: Problem solved. Please see my answer below.] In my app I call the
**EDIT: There are several options below that would work. Please vote/comment according to your
Please let me know if you have any idea about it. Thanks EDIT What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.