Reputation: 199
I have a field of a table named SpeakerName. When I show it in a table, it shows the name correctly (eg. Efraín), but when passing it to a textbox, it shows this: Efraín I think it is a UTF 8 and ASCII problem, how can I set the textbox to show the text correctly?
Upvotes: 0
Views: 881
Reputation: 199
I used HttpUtility.HtmlDecode(mytext) and it worked! I found this Special (or foreign countries) characters very helpfull! Thanks!
Upvotes: 0
Reputation: 28970
You can adjust with
var result = Server.HtmlEncode(yourText);
Upvotes: 1