[英]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.