How to handle Smart Quotes pasted into TextArea input
Hi All,
In my app, users will copy and paste text, probably from MS Word, into textareas. The problem is with the curly smart quotes that MS Word uses (as well as the double width hyphen). Example: say user is trying to copy text test’s into app, this text is inserted into database as test¿s
We are using Oracle 11g and having below parameters
Parameter Value
----------------------------------------- -----------------------------
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
The application is developed using Struts2 + Spring framework. In Struts2 we set encoding as 'ISO8859_1'(struts.properties).
Can someone please let me know, how to resolve this issue.
Thanks in advance.
Regards,
Sharath.