diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-08 20:22:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 20:22:30 +0200 |
commit | bd34d38bf899ff311fb5da214c671bc886764431 (patch) | |
tree | 6c3ec45fa973680a6e8444df3aca0e9729830e5c | |
parent | 950c5567f7ff7d501544bf1d318fbb99a66ca3e4 (diff) | |
parent | 1c74fa42424d6a6cbf0cdd5b42f7bb54a1b9d7cd (diff) |
Merge pull request #41888 from neikeq/sln-bom
C#: Use BOM when creating a solution
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools.ProjectEditor/DotNetSolution.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/DotNetSolution.cs b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/DotNetSolution.cs index 6f318aab4a..cc0da44a13 100644 --- a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/DotNetSolution.cs +++ b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/DotNetSolution.cs @@ -2,6 +2,7 @@ using GodotTools.Core; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Text.RegularExpressions; namespace GodotTools.ProjectEditor @@ -88,7 +89,7 @@ namespace GodotTools.ProjectEditor string solutionPath = Path.Combine(DirectoryPath, Name + ".sln"); string content = string.Format(SolutionTemplate, projectsDecl, slnPlatformsCfg, projPlatformsCfg); - File.WriteAllText(solutionPath, content); + File.WriteAllText(solutionPath, content, Encoding.UTF8); // UTF-8 with BOM } public DotNetSolution(string name) |