We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I'm trying to use CsvProvider with specified encoding, so the definition looks like this:
type TradeRows = CsvProvider<csvDefinitionFile, Separators = ";", SkipRows = 3, HasHeaders = true, Encoding = "1250", Culture = "cs-CZ", IgnoreErrors = true>
but I'm getting following error during build:
No data is available for encoding 1250. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Funny thing is this project works completely fine in Visual Studio, but I cannot build it with dotnet build or Rider.
dotnet build
I understand I have to register encodings with something like this:
Encoding.RegisterProvider CodePagesEncodingProvider.Instance
but how to do it so it is recognized by CsvProvider?
The text was updated successfully, but these errors were encountered:
I'm not actually sure. Perhaps we should just register all available encoding providers by default in the design-time component
Sorry, something went wrong.
Fix #1453: Fix CsvProvider encoding provider registration
26e5a06
A partial fix to this is here: #1503
An additional package needs to be referenced, or we must move to later .NET for the design time component
Successfully merging a pull request may close this issue.
Hello,
I'm trying to use CsvProvider with specified encoding, so the definition looks like this:
but I'm getting following error during build:
Funny thing is this project works completely fine in Visual Studio, but I cannot build it with
dotnet build
or Rider.I understand I have to register encodings with something like this:
but how to do it so it is recognized by CsvProvider?
The text was updated successfully, but these errors were encountered: