Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeneThomas opened this issue Jul 2, 2021 · 2 comments
Open

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

GeneThomas opened this issue Jul 2, 2021 · 2 comments

Comments

@GeneThomas
Copy link

.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
Copy link

537mfb commented Jul 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@GeneThomas @537mfb and others