title: How to handle the special characters using java or javascript without removal
body: <p>I am developing a rich text editor to one of our distributed application to allow the user to enter his/her comments in that editor. Here we are allowing the user to type the comments from keyboard and copy paste the comments from external sources like internet, MS-Word etc., So, here we need to save the content whatever entered by the user without removing even a single character.</p>
  
  <p>Initially I thought like, we need to encrypt the comments and save it to the database side, while user wants to see his comments, then we get it from the database and decrypting it and displaying to the user. But by this the problem is like, the encrypted data/comments in the database is used by different applications so that we need to implement the same encryption and decryption mechanism in all other applications....It's a very bad idea.</p>
  
  <p>So guys, If any one have the better idea on this. please post the answers.</p>
  
  <p>Thanks.</p>