I have a site that allows users to input text to a SQL DB that will be diplayed on various pages throughout the site. All of sudden, and for seemingly no reason, some special characters, such as hyphens (-), single quotes ('), and double-quotes ("), among others, have been replaced by latin characters.
This has been happening on nearly all of my tables, including tables that have not been updated since this has started happening.
Here's an example:
TBL1 has fldQUOTE of type ntext. The value of one record used to display on the Web site using ASP to output the value as the following:
start text from DB -->
I am so impressed by NAME & staff I have decided to spread the word in Australia & re-sell all there great software & products.
<-- end text from DB
However, it is now displayed as follows:
start text from DB -->
I am so impressed by James Leichter & Aptora staff I have decided to spread the word in Australia & re – sell all there great software & products.
<-- end text from DB
Notice that the hyphen in "re-sell" was replaced with "re – sell". When I look at the value directly using SQL Management Studio it displays as "re – sell".
For details on how this text is handled on the site consider the following scenario:
1. User inputs text into a form textarea on a .asp page.
2. The textarea value is inserted into a new record in the SQL Table).
3. Another .asp page queries the record in the table and then displays the value.
Again, the text displayed above displayed perfectly fine on my site for years, and just within the past couple of months has been displayed with these new characters.
Please let me know if you have any ideas as to the cause of this.
This has been happening on nearly all of my tables, including tables that have not been updated since this has started happening.
Here's an example:
TBL1 has fldQUOTE of type ntext. The value of one record used to display on the Web site using ASP to output the value as the following:
start text from DB -->
I am so impressed by NAME & staff I have decided to spread the word in Australia & re-sell all there great software & products.
<-- end text from DB
However, it is now displayed as follows:
start text from DB -->
I am so impressed by James Leichter & Aptora staff I have decided to spread the word in Australia & re – sell all there great software & products.
<-- end text from DB
Notice that the hyphen in "re-sell" was replaced with "re – sell". When I look at the value directly using SQL Management Studio it displays as "re – sell".
For details on how this text is handled on the site consider the following scenario:
1. User inputs text into a form textarea on a .asp page.
2. The textarea value is inserted into a new record in the SQL Table).
3. Another .asp page queries the record in the table and then displays the value.
Again, the text displayed above displayed perfectly fine on my site for years, and just within the past couple of months has been displayed with these new characters.
Please let me know if you have any ideas as to the cause of this.