dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.15k stars 9.92k forks source link

The � symbol "replacement character issue" #55994

Open ZakariaBakhkhouch opened 3 months ago

ZakariaBakhkhouch commented 3 months ago

Is there an existing issue for this?

Describe the bug

When creating a javascript file using Show Compact View, The � symbol, or the "replacement character" issue happens on some texts, it's probably related to text encoding issues, but when I create it using the template, the problem no longer occurs. I think it's a bug in the new feature introduced in Visual Studio "Creating files using Show Compact View".

Expected Behavior

The files created using Show Compact View should saved with UTF-8 encoding.

Steps To Reproduce

No response

Exceptions (if any)

The issue of seeing � characters in your views. in my asp.net core mvc web app.

.NET Version

6, 7, 8, 9

Anything else?

No response

javiercn commented 3 months ago

@ZakariaBakhkhouch thanks for contacting us.

Can you please report the problem through the Visual Studio report a problem dialog here that'll help the issue get routed to the appropriate team faster.

ZakariaBakhkhouch commented 3 months ago

@ZakariaBakhkhouch thanks for contacting us.

Can you please report the problem through the Visual Studio report a problem dialog here that'll help the issue get routed to the appropriate team faster.

Sure.