So, i have a form with a single field where a user can input text. When they click a button on the form, it will call an RPG program to take the text entered and put it into a table in our system with a field described as CHAR(500). I marked the field on the form as 'Text Area' so that the user can actually see everything they would be typing, but a problem arises if the text entered involved the user pressing enter to go to a new line. The data will still get put in my table, but the system says it contains Undisplayable characters. I've tried scanning the string for instances of things like '\n' and '\r' and removing them, but it doesn't seem to do anything.
Is there any way to suppress the users ability to press enter on a text area? or is there some other character i should be removing from the string before inserting it into the table?
Is there any way to suppress the users ability to press enter on a text area? or is there some other character i should be removing from the string before inserting it into the table?

Comment