Razor outputs all text with HTML encoding, unless Html.Raw is used. For example:
<h1>@Model.PageTitle</h1>
Will automatically HTML encode the contents of PageTitle. This is fine, however Razor also will encode a number of special characters as HTML entities, like German Umlaute, as HTML numeric entities, which is unnecessary, as these can be represented perfectly fine in the UTF-8. The only characters that really need HTML entities are usually < > and &
Is there a way to configure this behavior?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/104800-razor-with-unnecessary-html-entities