Skip to content

Suggestion: Allow the Unit Separator character (ASCII 31) as a separator. #318

@Shawnecy

Description

@Shawnecy

@nietras

Because my incoming data uses all ASCII characters (32-128), I was hoping to use the unit separator when reading and writing CSV. My writer declaration:

using var writer = Sep.Writer(options => options with
{
    Sep = Sep.New('\u001f'),
    WriteHeader = true
}).ToText();

However, this throws an argument out of range exception which I can see is explicitly happening here as part of validating the separator:

SepThrow.ArgumentOutOfRangeException_Separator(separator);
.

Is there some reason the ASCII separator characters (28-31) are prohibited from being used as separators? Is there some way to disable this validation or work around this prohibition?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions