mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-22 16:19:51 +01:00
Tell UTF-8 from 1250 without throwing, and decode timetables the same way
The strict decode threw on every 1250 file, hundreds of them per load.
This commit is contained in:
@@ -709,7 +709,7 @@ public partial class Scenarios : UserControl
|
||||
|
||||
try
|
||||
{
|
||||
timetableContent.Text = File.ReadAllText(path, LegacyText.CodePage1250);
|
||||
timetableContent.Text = LegacyText.Decode(File.ReadAllBytes(path));
|
||||
UpdateTimetableTab(true);
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user