How can I escape localized string encoding:
<%= Html.Encode("ÆØÅ") %> from rendering ÆØÅ
is there another way to encode localized strings?
How can I escape localized string encoding:
<%= Html.Encode("ÆØÅ") %> from rendering ÆØÅ
is there another way to encode localized strings?
That's being encoded twice - are you using this in a HtmlHelper call?
// this will displayÆØÅ as Html.TextBox encodes the
// value passed to it so it's encoded twice in this line
<%=Html.TextBox("sdfsdf", Html.Encode("ÆØÅ"))%><br />
// this will display ÆØÅ
<%= Html.Encode("ÆØÅ") %><br />
// As will this
<%=Html.TextBox("sdfsdf", "ÆØÅ")%><br />