Need help to remove the non printable characters

Hi all,

I'm working in a webbased system in that users can enter a text which will be updated in the database.Currently the users are cutting and pasting the text from different software products (word, excel, word pad, etc.). This process sometimes copies the end of line or other unprintable characters to our java application.So i want to incorporate a input validation method for this.Is anyone aware of how other systems scrub the data they receive from a web based system?

[492 byte] By [MK_selvaa] at [2007-11-27 10:20:22]
# 1

What am I missing? How is this related to cryptography?

sabre150a at 2007-7-28 17:03:13 > top of Java-index,Security,Cryptography...
# 2

I would have thought in cryptography you would want to remove the printable characters ;-)

ejpa at 2007-7-28 17:03:13 > top of Java-index,Security,Cryptography...