Razor view "character represented as" "

The symbol “seems” is rendered as “” in razor mode. I tried

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

and

@Html.Raw()

but the problem will not go away. I did not have this problem with ASPX views.

In addition, culture is established as

<globalization uiCulture="en" culture="en-US" />
+5
source share
1 answer

I suspect that your .cshtmlview / partial containing this character is not saved with UTF-8 with signature encoding. Also do the same check for _Layout. In VS use Save As with encoding dialog:

enter image description here

, » . , XML . - , , , . , , , , .

: HTML5, :

<meta charset="utf-8" />
+9

All Articles