mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-01 20:34:57 +01:00
Fix cp1250 decoding, log unsupported loads
The repositories resolved GetEncoding(1250) in their constructors, before anything registered CodePagesEncodingProvider - reads fell back to Latin-1 and Polish characters came out as mojibake.
This commit is contained in:
@@ -20,6 +20,7 @@ using StarterNG.Domain;
|
||||
using StarterNG.Application;
|
||||
using StarterNG.Domain.Sceneries;
|
||||
using StarterNG.Presentation.Scenarios;
|
||||
using StarterNG.Infrastructure.Adapters;
|
||||
|
||||
namespace StarterNG.Views;
|
||||
|
||||
@@ -708,7 +709,7 @@ public partial class Scenarios : UserControl
|
||||
|
||||
try
|
||||
{
|
||||
timetableContent.Text = File.ReadAllText(path, Encoding.GetEncoding(1250));
|
||||
timetableContent.Text = File.ReadAllText(path, LegacyText.CodePage1250);
|
||||
UpdateTimetableTab(true);
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user