Disable encoding of unicode characters in ASP.NET-MVC3

后端 未结 2 1586
别跟我提以往
别跟我提以往 2021-01-19 15:37

On my site every text is served as UTF-8.

Since nowadays every browser supports unicode characters, I would like to use them as-is.

The asp.net framework is

2条回答
  •  轮回少年
    2021-01-19 16:10

    You can also use the @Html.Raw method of mvc.This is useful where you don't want to do it at global level sometimes on already built project.

    @Html.Raw(@ViewBag.Title)
    

提交回复
热议问题