Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Replace special characters in string when copied from Microsoft word

$
0
0

I am trying to figure out an issue in my Classic ASP application, whenever a user tries to copy text from Microsoft word into Textarea placeholder & save, it is stored in the Database as a??.

I tried replacing special character like single quote using following statement

1)Replace(Trim(Request.Form("Description")),chr(39), "'")

2)Replace(Trim(Request.Form("Description")),chr(39), "'")

Both the above statements didn't work. It was able to find special character-single quote when i type in & replaced it with ' when i use 2nd statement but for some weird reason it doesn't still work for Copy paste from Microsoft word

Any help is highly appreciated


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>