Skip to content

The test location_coordinates.csv contains invalid CSV #21

Open

Description

@josdejong

The test currently contains the following data (see commit 9ed330c):

Contact Phone Number,Location Coordinates,Cities,Counties
2095257564,37�36'37.8"N 121�2'17.9"W,Modesto,Stanislaus

This is invalid CSV: there are two values that contain a double quote ". According to the CSV standard, these values should be enclosed in quotes and the quote itself must be escaped:

  1. Each field may or may not be enclosed in double quotes (however
    some programs, such as Microsoft Excel, do not use double quotes
    at all). If fields are not enclosed with double quotes, then
    double quotes may not appear inside the fields. For example:

    "aaa","bbb","ccc" CRLF
    zzz,yyy,xxx

and:

  1. If double-quotes are used to enclose fields, then a double-quote
    appearing inside a field must be escaped by preceding it with
    another double quote. For example:

    "aaa","b""bb","ccc"

Can you please adjust the test?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions