Skip to content

Commit

Permalink
v1.2.17
Browse files Browse the repository at this point in the history
- fixed *WebServiceGateway* error "Windows -1252 is not supported encoding name"
  • Loading branch information
genemars committed Sep 29, 2023
1 parent 886c386 commit f7ebcac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MIG/Gateways/WebServiceGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public class WebServiceGateway : IMigGateway, IDisposable
public WebServiceGateway()
{
sseEventBuffer = new List<SseEvent>();
// the following line fixes the error: "Windows -1252 is not supported encoding name"
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}

public List<Option> Options { get; set; }
Expand Down
1 change: 1 addition & 0 deletions MIG/MIG.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
<PackageReference Include="WebsocketSharp.Standard2" Version="2022.4.16.1520" />
<PackageReference Include="MessagePack" Version="2.5.124" />
<PackageReference Include="MessagePack.Annotations" Version="2.5.124" />
Expand Down

0 comments on commit f7ebcac

Please sign in to comment.