简体   繁体   English

带有ASP的.NET Core中的奇怪字符

[英]Strange characters in .NET core with ASP

my application is written in Spanish and I get strange simbols when I use special characters like: "´","ñ" and "¿". 我的应用程序是用西班牙语编写的,当我使用诸如“´”,“ñ”和“¿”之类的特殊字符时,会得到奇怪的符号。 Here you can see better: 在这里您可以看到更好的结果: 奇怪的辛博尔

Instead it should say: "Breve descripción". 相反,它应该说:“ Brevedescripción”。 I already set the meta tag with the UTF-8 attribute in my _Layout.cshtml .I'm using dotnet core 1.0.4 ASP MVC 我已经在_Layout.cshtml中使用UTF-8属性设置了meta标签。我正在使用dotnet core 1.0.4 ASP MVC

Some help? 一些帮助?

You have to find the default .cshtml files from MVC. 您必须从MVC中找到默认的.cshtml文件。 Then, you have to edit the file by changing the format to UTF-8. 然后,您必须通过将格式更改为UTF-8来编辑文件。

我不知道为什么,但是我尝试使用VScode编辑视图,现在可以正常工作了。好像Visual Studio 2017的UTF-8有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有奇怪字符的ASP.NET CSV Excel问题 - ASP.NET CSV Excel issue with strange characters ASP.NET Core Api 控制器中的奇怪 CultureNotFoundException - Strange CultureNotFoundException in a ASP.NET Core Api Controller ASP.NET Core Controller中的奇怪死锁情况 - Strange deadlock situation in ASP.NET Core Controller ASP Net Core WebHostBuilder集成测试期间的奇怪行为 - Asp Net Core WebHostBuilder strange behavior during integration testing ASP.Net Core 应用程序和 Environment.GetEnvironmentVariables() 奇怪的行为 - ASP.Net Core application and Environment.GetEnvironmentVariables() strange behavior ASP.NET Core HTTPRequestMessage返回奇怪的JSON消息 - ASP.NET Core HTTPRequestMessage returns strange JSON message ASP.Net Core:X-Frame-Options奇怪的行为 - ASP.Net Core: X-Frame-Options strange behavior 在 docker 上运行的 asp.net 核心没有正确编码拉丁字符 - asp.net core running on docker not encoding Latin characters correctly ASP.NET 内核中的路由,以特殊字符作为输入 - Routing in ASP.NET Core With Special Characters as Input 在ASP Net Core剃须刀帐户页面中无法正确显示汉字 - Chinese characters are not displayed properly in asp net core razor account page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM