Skip to content

Commit f3cb288

Browse files
committed
added encoding to correct encoding problem related to issue #3461
1 parent ee8c818 commit f3cb288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/VBComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void ExportUserFormModule(string path)
114114

115115
var tempFile = ExportToTempFile();
116116
var tempFilePath = Directory.GetParent(tempFile).FullName;
117-
var contents = File.ReadAllLines(tempFile);
117+
var contents = File.ReadAllLines(tempFile, System.Text.Encoding.UTF7);
118118
var nonAttributeLines = contents.TakeWhile(line => !line.StartsWith("Attribute")).Count();
119119
var attributeLines = contents.Skip(nonAttributeLines).TakeWhile(line => line.StartsWith("Attribute")).Count();
120120
var declarationsStartLine = nonAttributeLines + attributeLines + 1;

0 commit comments

Comments
 (0)