I have aspx pages where I receive content that was written in MS Word, and then copy/paste into the page's content. In cases where the person generating the content typed a single or double quote in word:
'test' or "test"
MS Word converted the quotes to
‘test’ or “test”
where the quotes are now slanted.
When I run this in an aspx page the quotes convert to scrambled text like this:
“testâ€
I even put this content into CDATA elements and got the same result. However, when I run this content in an htm page, all looks correct with no scrambled characters.
Is there a setting I need to configure in VS2012 for this, or do I need to do a search and replace to change all punctuation marks from word to what Notepad would generate?
Thanks.