No data is available for encoding 1252
When running some of my scripts that were created with the recent LinqPad 5 version, I often get the error "No data is available for encoding 1252". Is there a way to fix this.
Best regards!
When running some of my scripts that were created with the recent LinqPad 5 version, I often get the error "No data is available for encoding 1252". Is there a way to fix this.
Best regards!
Comments
Are you using some other tool to edit the .linq files? LINQPad 5 and 6 always use UTF-8 format when saving.
The .linq files have only been edited with LINQPad 5 or 6. But I have referenced some .NET dlls that were compiled with VS. Does this give you a clue?
That shouldn't make any difference. Could some file-syncing or other software be editing the .linq file?
Many thanks for your assistance, I finally figured out: By installing the .NET Core 3 Windows SDK (as you write in your release notes and running the command "Encoding.RegisterProvider(CodePagesEncodingProvider.Instance)" at the beginning of each LinqPad session any encoding problem could be solved.