Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to handle Smart Quotes pasted into TextArea input

user1115908Apr 5 2012 — edited Apr 6 2012
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2012
Added on Apr 5 2012
3 comments
690 views