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:
maj00r
2026-10-04 12:18:36 +02:00
parent 2545daeb82
commit 3ddd00895f
3 changed files with 47 additions and 13 deletions

View File

@@ -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