I have a VB.net web service that inserts data into a SQL 2008 DB. A lot of the data is being pulled from a word document. So we recently ran into an issue where smart quotes and a funky looking apostrophe was inserted into the data column. It inserted fine. My issue is that we are pulling the data from the DB and sending it back to the user as JSON. So when the user tries to look at the data they get an unexpected end of JSON when it tries to read the funky characters.
Can I do something in my VB code before I insert it or is it easier to do in the SQL insert stored procedure? Any suggestions would be greatly appreciated.