Describe the feature
UTF-8 with BOM is the standard used by Visual Studio. There are comments around advocating for its use, such as this one:
dotnet/docs#19794 (comment)
I'm aware there are also places suggesting that the byte order mark is not recommended, but I'd like to open this to raise the discussion on what the best default for this would be considering this project is supposed to host good defaults for folks to use.
editorconfig/editorconfig#297
Interestingly enough, I've also noticed that when creating a brand new project in VS, and then asking to create a new .editorconfig file, the charset option is not set. I don't understand why that is the case.
Rules
https://spec.editorconfig.org/index.html#:~:text=are%20case%20insensitive.-,charset,-Set%20to%20latin1
Describe the feature
UTF-8 with BOM is the standard used by Visual Studio. There are comments around advocating for its use, such as this one:
dotnet/docs#19794 (comment)
I'm aware there are also places suggesting that the byte order mark is not recommended, but I'd like to open this to raise the discussion on what the best default for this would be considering this project is supposed to host good defaults for folks to use.
editorconfig/editorconfig#297
Interestingly enough, I've also noticed that when creating a brand new project in VS, and then asking to create a new
.editorconfigfile, thecharsetoption is not set. I don't understand why that is the case.Rules
https://spec.editorconfig.org/index.html#:~:text=are%20case%20insensitive.-,charset,-Set%20to%20latin1