Aug 18, 2011 at 2:22 PM
Edited Aug 18, 2011 at 2:36 PM
I'm new (and beginner in mvc 3) :) And I am learning...
I've made some web, everything works fine, but I have one little problem. In Czech we have special characters like this: ě š č ř ž ý á í é. I set lang="cs", charset="utf-8"...
Every characters are display properly in frontend, but when I open Source code of page, some characters are display as &#XXX; where XXX is number as you know :) So menu text in source code look as this:
Pro média ("missing" é)
Výroba elektřiny ("missing" ý) and so on...
On other websites written in PHP or where is used Joomla or some other CMS, there are these special characters in source code OK.
So I have an idea :) I want to use @Html.Raw() for content in ~/Core/Shapes/Document.cshtml or in my layout.cshtml BUT... there is the problem. I trying use something like this:
var telo = "@Display(Modul.Body)"
var telo = new HtmlString(Display(Modul.Body))
And so on....
I am sure that some of these experiments are absolute nonsense...
But How can I achieve that text in frontpage that see user (maybe "Výroba elektřiny") will be displayed in Source code as "Výroba elektřiny" not as "Výroba elektřiny"?
Or how can I use Html.Raw in this case?
Thanks to everyone :)
And sorry if it is very stupid question :) but I looking for everywhere and nothing found :(