We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36b84fd commit 3c5c08bCopy full SHA for 3c5c08b
project/Morpho/MorphoReader/Read.cs
@@ -29,9 +29,10 @@ private string ReadEdxFile(string path)
29
{
30
string characters = @"[^\s()_<>/,\.A-Za-z0-9=""\P{IsBasicLatin}\p{IsLatin-1Supplement}]+";
31
32
+ var isoLatin1 = Encoding.GetEncoding(28591);
33
if (!System.IO.File.Exists(path))
34
throw new Exception($"{path} not found.");
- string text = System.IO.File.ReadAllText(path);
35
+ string text = System.IO.File.ReadAllText(path, isoLatin1);
36
string res = Regex.Replace(text, characters, "");
37
38
return res.Replace("<Remark for this Source Type>", "");
0 commit comments