Skip to content

Skybrud.Csv v0.0.3

Latest
Compare
Choose a tag to compare
@abjerner abjerner released this 28 Aug 11:46

Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Csv --version 0.0.3

or the NuGet package manager:

Install-Package Skybrud.Csv -Version 0.0.3

Changelog

  • Added logic for converting to and from DataTable instances (see a3ce074)
    The System.Data namespace (which contains the DataTable class as well as related classes) is not supported in .NET Standard 1.3, so .NET Standard 2.0 has been added as an additional target framework.

  • Added logic to the CsvFile class for automatically detecting the used separator (see 7689855)
    This includes looking for an explicit separator declaration like sep=; in the beginning of CSV files, but also scanning the first row to find what's the most likely separator used.

  • Added logic to the CsvFile class for automatically detecting the used encoding (see 7689855 and e20dde9)
    When loading a CSV file, the package will now try to detect the encoding, by checking against UTF-8, Windows 1252 and ISO 8859-1. Other encoding might be added in the future, but for now, these should account for the most widely used encodings in Western countries.