Skip to content

can't find delimiter #13

Open
Open
@ojii

Description

@ojii

The following code fails with SniffingFailed even though the data looks like valid csv to me:

        Sniffer::new()
            .sniff_reader(Cursor::new([
                34, 97, 34, 44, 34, 98, 34, 44, 34, 99, 34, 44, 34, 100, 34, 44, 34, 101, 34, 10,
                34, 227, 129, 130, 34, 44, 34, 227, 129, 132, 34, 44, 34, 227, 129, 134, 34, 44,
                34, 227, 129, 136, 34, 44, 34, 227, 129, 138, 34, 10, 34, 240, 159, 165, 179, 34,
                44, 34, 240, 159, 165, 176, 34, 44, 34, 240, 159, 164, 170, 34, 44, 34, 240, 159,
                146, 165, 34, 44, 34, 240, 159, 171, 182, 34, 10,
            ]))

the csv file there is the following, which was generated with Python using the "unix dialect"

"a","b","c","d","e"
"あ","い","う","え","お"
"🥳","🥰","🤪","💥","🫶"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions