marceldev89 / BattleNET

BattlEye Protocol Library and Client
GNU Lesser General Public License v3.0
76 stars 44 forks source link

Latest .net issues #52

Open xXBuilderBXx opened 5 months ago

xXBuilderBXx commented 5 months ago

Looks like current .net core/.net (not .net framework) has issues loading the encoding used for this lib.

This occurs in the SendLoginPacket method with a try catch this gives an error of No data is available for encoding 1252

People can fix this by adding this at the start of your program. System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);