I am experiencing some weird encoding behavior in my ASP.NET MVC project.
My site is master
" & Gt; & Lt;% = Html.Encode ("Windows 7 Tutoriál")% & gt; & Lt; / A & gt; & Lt; / Div & gt;
As a result, the page should be
& lt; Div class = "logo" & gt; & Lt; A href = "/" & gt; Windows 7 TutoriĂl & lt; / A & gt; & Lt; / Div & gt;
However, in Index.aspx
& lt; H1 & gt; Windows 7 Ultramodern & lt; / H1>
which translates correctly on the page as a result of that. I have
& lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & lt; Head & gt; As my first line in
Locally, both files are saved in UTF-8 encoding.
Why is any idea why and how to fix it?
Thanks in advance.
EMM, I just came to know that both files are actually in UTF-8, however, The version of one of these was experimenting with the signature, while the others were unaware I was surprised when VS Thanks for commentators anyway, they decided to change them.
Comments
Post a Comment