From 966e9f43f1dc2ceedabcb59e80af69821c2915e6 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 25 Dec 2020 22:08:59 -0500 Subject: [PATCH] Fixed: 'iso-8859-2' is not a supported encoding name --- src/NzbDrone.Host/Bootstrap.cs | 3 ++- src/NzbDrone.Host/Readarr.Host.csproj | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index b1eef2bbf..995c55dc5 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -4,11 +4,11 @@ using System.IO; using System.Reflection; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; +using System.Text; using DryIoc; using DryIoc.Microsoft.DependencyInjection; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting.WindowsServices; using NLog; @@ -46,6 +46,7 @@ namespace NzbDrone.Host var startupContext = new StartupContext(args); LongPathSupport.Enable(); + Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); var appMode = GetApplicationMode(startupContext); diff --git a/src/NzbDrone.Host/Readarr.Host.csproj b/src/NzbDrone.Host/Readarr.Host.csproj index 05e0fdf20..bf9fdc924 100644 --- a/src/NzbDrone.Host/Readarr.Host.csproj +++ b/src/NzbDrone.Host/Readarr.Host.csproj @@ -7,6 +7,7 @@ +