andyedinborough / aenetmail

C# POP/IMAP Mail Client
369 stars 153 forks source link

.net core: "No data is available for encoding 1252" #211

Open GeneThomas opened 3 years ago

GeneThomas commented 3 years ago

.net core does not have many encodings so in TextClient() where you Encoding = System.Text.Encoding.GetEncoding(1252); .net core throws as is can not find code page 1252. I changed this to Encoding = System.Text.Encoding.ASCII; or Encoding = System.Text.Encoding.UTF8;

Now I get: BAD Unknown command kt10mb48627408pjb

537mfb commented 3 years ago

This library isn't compatible with .NET Core

As you can see if you open the csproj file, the target framework is .NET Framework 4.0 - <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

There isn't an update in this library in the last 6 years - don't think there will be any now