CSV file datasource - string parser

Stimulsoft Reports.NET discussion
Post Reply
Molot4inka
Posts: 1
Joined: Fri Apr 17, 2009 8:17 pm
Location: Belarus

CSV file datasource - string parser

Post by Molot4inka »

Hello, there is a bug in CsvHelper , i don't know why but you expect that csv (comma-separeted value) file will have ";" as delimeter, but csv uses comma "," as a delimeter, that is why it is called comma separated ;-) becaouse of this bug when you retrieve data from csv you will get only one column (actually, all column will be merged in one with "_" betwen each cell vaue)
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

CSV file datasource - string parser

Post by Ivan »

Hello,
Molot4inka wrote:Hello, there is a bug in CsvHelper , i don't know why but you expect that csv (comma-separeted value) file will have ";" as delimeter, but csv uses comma "," as a delimeter, that is why it is called comma
separated ;-) becaouse of this bug when you retrieve data from csv you will get only one column (actually, all column will be merged in one with "_" betwen each cell vaue)
That is correct, the CSV is an abbreviation of "comma-separated value", but by default applications use the "list separator" character from the Windows Regional Settings.
In USA comma is the list separator, in many Eastern Europe countries the list separator is ";".

We have corrected the issue in the CsvHelper, now the column separator is taken from the System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator.
Patch will be available in the next prerelease build from April, 27.

Thank you.
Post Reply