'Set file formatting type to UTF-8 project (or solution) wide in a C# project?
My team is working on a relatively big Solution in .NET 6.0 (50+ projects), we have people working with Ubuntu, MacOS and Windows. Windows users are using either Visual Studio or Rider, the rest are using VSCode or Rider. The problem is that many of the German-specific characters gets messed up whenever the code moves from an OS to another. Is there a way to force my .NET projects or solution to save files only in UTF-8 to avoid these issues?
Solution 1:[1]
You can create .editorconfig file in the root folder of the solution and add charset property to it:
root = true
[*]
charset = utf-8
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Guru Stron |
