Special (or foreign countries) characters

给你一囗甜甜゛ 提交于 2019-12-05 16:25:59

Your characters are being HTML encoded, either somewhere in your data access layer, or within the gridview controls. Try running the text through HttpUtility.HtmlDecode() before binding the grid.

If that doesn't work, then it's probably being encoded at the control level. I see that you tagged this question with "textbox". The standard ASP.NET TextBox control will automatically encode anything that's assigned to its Text property. Instead, you can use a generic System.Web.UI.HtmlControls.HtmlTextArea control or new HtmlGenericControl("input").

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!