dotnet / dotnet/aspnetcore

The � symbol "replacement character issue"

Open
#55,994 2 comments 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.