We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 775a9f7 + 5f9b32e commit 5ed7ffcCopy full SHA for 5ed7ffc
Rubberduck.VBEEditor/SafeComWrappers/VBA/VBComponent.cs
@@ -114,7 +114,7 @@ private void ExportUserFormModule(string path)
114
115
var tempFile = ExportToTempFile();
116
var tempFilePath = Directory.GetParent(tempFile).FullName;
117
- var contents = File.ReadAllLines(tempFile);
+ var contents = File.ReadAllLines(tempFile, System.Text.Encoding.UTF7);
118
var nonAttributeLines = contents.TakeWhile(line => !line.StartsWith("Attribute")).Count();
119
var attributeLines = contents.Skip(nonAttributeLines).TakeWhile(line => line.StartsWith("Attribute")).Count();
120
var declarationsStartLine = nonAttributeLines + attributeLines + 1;
0 commit comments