.NET Core 部分视图土耳其语字符错误

.NET Core Partial View Turkish Character Error

我是 .net Core 的新人。我对 Partial View 的土耳其语字符有疑问。

我有一个 CssController,它有 Tipografi.cshtmlButton.cshtml

有我的代码和图片:

@{
if (ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Css") != -1)
{
    <div class="col-md-3 text-center" style="background-color:lavender;">
        <div class="panel-heading" align="left"><h3>İç Menü</h3></div>
        <div class="list-group">
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Tipografi") != -1) ? "active" : "")" asp-controller="Css" asp-action="Tipografi">Tipografi</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Tablolar") != -1) ? "active" : "")" asp-controller="Css" asp-action="Tablolar">Tablolar</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Code") != -1) ? "active" : "")" asp-controller="Css" asp-action="Code">Code</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Form") != -1) ? "active" : "")" asp-controller="Css" asp-action="Form">Form</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Button") != -1) ? "active" : "")" asp-controller="Css" asp-action="Button">Button</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Image") != -1) ? "active" : "")" asp-controller="Css" asp-action="Image">Image</a>
            <a class="list-group-item @((ViewContext.ActionDescriptor.DisplayName.ToString().IndexOf("Yardimcilar") != -1) ? "active" : "")" asp-controller="Css" asp-action="Yardimcilar">Yardımcılar</a>
        </div><p>üğçöıİ</p>
    </div>
}
else
{

    <div class="col-md-3 text-center" style="background-color:lavender;">
        <div class="panel-heading" align="left"><h3>Hizmetler</h3></div>
        <div class="list-group">
            There is a list
        </div>
    </div>
}

}

它正在运行,但字符看起来像 This

有我的布局代码:

<body>
@Html.Partial("MasterPage//Header.cshtml")
<div class="row">
    <div class="col-md-3" style="background-color:lavender;margin-bottom:30px;">
        @Html.Partial("MasterPage//Duyurular.cshtml")

        @Html.Partial("MasterPage//Etkinlikler.cshtml")

    </div>
    <div class="col-md-6" style="background-color:lavenderblush;padding-bottom:20px;padding-top:20px;">
        @RenderBody()
    </div>
    @Html.Partial("MasterPage//Hizmetler")
</div>


@Html.Partial("MasterPage//Footer.cshtml")

There is some scripst and others...

@RenderSection("scripts", required: false)

我解决了这个问题。我创建了一个新视图并从其他页面复制了代码..