Html.Raw should I use in every application?

0
Hello everyone in PartialView of my site, I had to put Html.Raw to solve problems with accentuation (even in Head put UTF-8 and in web.config globalization) only with Html.Raw solved, my doubt is I can put in all fields (Title, Description and etc) without compromising the performance, since it is still an HtmlHelpers ??? grateful.

    
asked by anonymous 14.08.2018 / 18:04

1 answer

0

When I had a problem with accentuation in Asp Net MVC Views, I simply saved the specific files that were experiencing this problem with the UTF-8 with BOM .

See a small example:

Here in this link explains how to save or open a document with a specific encoding.

Particularly, I find it horrible to use any function to correct encoding, having the possibility to correct it by saving the file with the correct encoding, since you will have to change each piece of code in hand.

    
14.08.2018 / 18:07