Skip to content
New issue

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

Wrong delimiter setted in csvConfiguration of the writer on mac os #2139

Open
filippoptg opened this issue Mar 20, 2023 · 0 comments
Open

Wrong delimiter setted in csvConfiguration of the writer on mac os #2139

filippoptg opened this issue Mar 20, 2023 · 0 comments
Labels

Comments

@filippoptg
Copy link

Describe the bug
When i try to export a csv from a mac I have two problems
The first is that the entire row of data, except header, is inside the quotes as I show you in the row's example below
"examName.2442ae72-d939-efa7-3e0b-01b39a03e89b.name.surname.Male.""06/07/2020 09:18:27.719"".""28/08/1994 10:00:00.000"".""06/07/2020 09:19:07.333""".
From here I describe the second problem, which is regarding the delimiter, since I expect it to be the semicolon
In the configurations of the writer I set delimiter to ";"
var config = new CsvConfiguration(CultureInfo.GetCultureInfo("it-IT"))
{
NewLine = "\r\n",
Delimiter = ";"
};
But when I go to see the csv that has been created, it presents as a delimiter the dot, as can be seen in the example line above.
I therefore assume that the first problem I mentioned - the entire line is inside the quotes, precisely because of the delimiter being seen as a dot - is a result of the wrong delimiter.

Anyone can show me a solution? Thanks

@filippoptg filippoptg added the bug label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant