When we are displaying text on JSP with MS Word apostrophe[ you’re ] it is getting replaced by ? [you?re] . Please help me to find solution to replace MS Word apostrophe[ you’re ] to normal text apostrophe[you’re] .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the character encoding throughout your entire web application to one and same character encoding which supports all the characters you’d like to support. These days it’s strongly recommended to choose the UTF-8 character encoding for that.
Seeing the
?instead of the MS Word "smart quote"’indicates that either the HTTP response encoding or that DB table encoding doesn’t support the character in question. The first step would be to tell JSP to use UTF-8 to encode the characters which are written to the HTTP response.If that doesn’t fix the problem, then the second step would be to check if the DB table and/or the JDBC driver is configured to use UTF-8 to store and/or transfer the data. How to do that depends on the DB make/version used which you didn’t tell anything about in your question. So all we can suggest is to just consult its documentation for details.
See also: