Is there an easy way to specify all "normal" views is an ASP.NET MVC app are to have charset=utf-8
appended to the Content-Type
? View()
lacks an override that allows you to specify the Content-Type
, and ActionResult
and friends don t seem to expose anything, either. The motivation is obviously to work around Internet Explorer guessing the "correct" encoding type, which I in turn want to do to avoid UTF-7 XSS attacks.
I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...