aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

Wrong encoding when adding a view #881

Open Fxbouffant opened 7 years ago

Fxbouffant commented 7 years ago

When a View is created from Add New Item (green), the encoding is UTF-8-BOM but when it's created with Add View (red), the encoding is ANSI (according to Notepad++)

image

Visual Studio 2015 Update 3 Microsoft .NET Core Tools 14.1.211111.0 ASP.NET Core 1.1.0

mlorbetske commented 7 years ago

@prafullbhosale can you take a look?

bigfi commented 7 years ago

I think this problem is still up because I have a weird encoding problem on some of my views, but not all.

It maybe the same one. I added the view with the red option (according to the screenshot above) and all my letters with accent (à, é) are replaced with question marks in a square.

Visual Studio 2017 Asp.net Core 1.1.2