文本在浏览器和页面源中的显示方式不同

时间:2016-01-12 03:24:07

标签: c# asp.net-mvc-4

我在Visual Studio 2012(ASP.NET MVC 4)中创建了一个Web项目。

在文件_layout.cshmtl中,我有以下内容:

<title>@ViewBag.Title</title>

HomeController

public ActionResult Index()
{
    ViewBag.Title = "Cửa hàng giầy dép thời trang"; 
    return View();
}

当我运行网站时,浏览器会显示“Cửahànggiầydépshờitrang”。

但是当我查看页面来源时,它会显示"Cửa h&#224;ng giầy d&#233;p thời trang".

为什么会有这种差异?

enter image description here

0 个答案:

没有答案