Skip to content

Commit

Permalink
Use default encoding when substituting code via the file
Browse files Browse the repository at this point in the history
  • Loading branch information
MDoerner committed Apr 27, 2019
1 parent 88ab764 commit a63a41c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,4 +1,5 @@
using System.IO;
using System.Text;
using Rubberduck.VBEditor.SafeComWrappers;
using Rubberduck.VBEditor.SafeComWrappers.Abstract;

Expand Down Expand Up @@ -31,7 +32,7 @@ public IVBComponent SubstituteCode(IVBComponent module, string newCode)
{
return module;
}
File.WriteAllText(fileName, newCode);
File.WriteAllText(fileName, newCode, Encoding.Default);
return _tempSourceFileHandler.ImportAndCleanUp(module, fileName);
}
}
Expand Down

0 comments on commit a63a41c

Please sign in to comment.