Comma-separated Values - Lack of A Standard

Lack of A Standard

The name "CSV" indicates the use of the comma to separate data fields. Nevertheless, the term "CSV" is widely used to refer a large family of formats, which differ in many ways. For example, many so-called "CSV" files in fact use the tab character instead of comma (such files can be more precisely referred to as "TSV" for tab separated values); some allow or require single or double quotation marks around some or all fields; and some reserve the very first record for a list of field names.

A particular problem is that in some countries, it is very common to write the decimal point as a comma instead of period. For example, pi would be written as 3,14159. This makes the comma a poor choice for field-separator in many locales. Other implementation differences include handling of more commonplace field separators (such as space or semicolon) and newline characters inside text fields.

Such lack of standardization can cause problems for data exchange based on so-called "CSV" files. One solution is to rely on a standard, such as that proposed by RFC 4180. The more common but technically less satisfactory solution is to rely on human intervention: because CSV files are plain text, humans can view and diagnose most common variants using a text editor.

Read more about this topic:  Comma-separated Values

Famous quotes containing the words lack of, lack and/or standard:

    These, and such as these, must be our antiquities, for lack of human vestiges. The monuments of heroes and the temples of the gods which may once have stood on the banks of this river are now, at any rate, returned to dust and primitive soil. The murmur of unchronicled nations has died away along these shores, and once more Lowell and Manchester are on the trail of the Indian.
    Henry David Thoreau (1817–1862)

    These, and such as these, must be our antiquities, for lack of human vestiges. The monuments of heroes and the temples of the gods which may once have stood on the banks of this river are now, at any rate, returned to dust and primitive soil. The murmur of unchronicled nations has died away along these shores, and once more Lowell and Manchester are on the trail of the Indian.
    Henry David Thoreau (1817–1862)

    When Freedom, from her mountain height,
    Unfurled her standard to the air,
    She tore the azure robe of night,
    And set the stars of glory there;
    Joseph Rodman Drake (1795–1820)