html - How to display UTF-8 Chars in VB.NET Button? -


i have following code:

<asp:button id="uxsavebutton" runat="server" />  protected sub page_load(byval sender object, byval e eventargs) handles me.load     uxsavebutton.text = "&#220;test" end sub 

i see in button Ütest see &#220;test

is there way solve it?

i tried add page this, doesnt helps, need other way:

<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 

please keep in mind, &#220; example, similar value can came database.

you putting html entity character in text, converted html code showing entity text. end &amp;#220; in rendered code.

put character in text. example:

uxsavebutton.text = chr(220) + "test" 

edit:

for actual text database not problem. characters not html entities. if have html code stored in database (which not best approach) can decode text:

uxsavebutton.text = server.htmldecode(str) 

Comments