View Full Version : User copy paste from MSword to HTML junk comes in place of Single and double quotes
faraz
02-09-2009, 06:43 AM
I have a jsp page with textarea.
When Ever user copy paste from MsWord to my Textarea and submits.
It saved as junk text in place single quotes and double quotes.
Suppose somebody copy pasted from MSword
"hello How are you ?"
it is comes as
â¿¿ hello How are you ? â¿¿
Please help me...!!!
How to resolve...What should i do...
abduraooft
02-09-2009, 06:50 AM
Are you saving it to a DB ? Just have a try by adding <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> inside your <head> tag
PS: Please follow http://www.codingforums.com/postguide.htm
1) Do not cross post your question in multiple forum categories- When posting, there is no excuse to post the same question in multiple categories in hopes of getting a quicker response. This is called spamming, and can get you banned. Choose one category that best accommodates your question, and post it there, once. If you're following up on a question, reply to the original thread, not start a new one! Everyone here is volunteering their time to help out others. The least you can do is make their jobs easier and less confusing.
faraz
02-09-2009, 06:57 AM
Yes i am saving in Database but even in database it is going as junk charaters ....
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
I already used this...
But Haven't got the solution....
faraz
02-09-2009, 06:59 AM
“ I am just checking with ‘coding Forum’..Lets see !”
faraz
02-09-2009, 07:01 AM
Its working fine here..!!
How coding forum Handled this...??
abduraooft
02-09-2009, 07:22 AM
You'd need to set the connection charset before inserting/retrieving your data.
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
(Assuming you are using mysql. Or else, there would be an equivalent option in all other DBs)
faraz
02-09-2009, 09:13 AM
My Database Charaterset is AL16UTF16..
Whether I have to change it some other characterset or anything else...
plz help...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.