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