Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai All

I have a web Page which shows some content from database. As I show the content on the web Page I am getting  symbol. How to remove it from the Page.
Posted
Comments
GPUToaster™ 21-Oct-11 5:35am    
Check you page default encoding, seems like a valid 'utf8' character.

Have a look at below link.

http://forums.asp.net/t/1323303.aspx/1
 
Share this answer
 
It's most likely an encoding problem. Data from you DBMS is injected into the HTML in an unsafe way. Please refer to this article on MSDN: http://msdn.microsoft.com/en-us/library/aa973813.aspx#anticross_sitescripting_topic4_four[^]. See Step 4: Encode output.

The function AntiXSS.HtmlEncode(String str) will do the encoding for you.

Regards,

—MRB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900