okfn / ckanext-pdeu

Custom CKAN Extension for PublicData.eu
9 stars 4 forks source link

Preview support for CSV that use other delimiters (eg. ';') #64

Closed sandervdwaal closed 10 years ago

sandervdwaal commented 11 years ago

It's not uncommon for CSV files to use a semi-colon as a delimiter in a dataset, eg.

http://www.publicdata.eu/dataset/1-und-2-stern-beherbergungsbetriebe/resource/8fe26946-ac8d-43cc-9b17-3043e5e78076

Would it be possible to detect this and show a preview for the data as you would do with a comma-separated file?

eg. check if the CSV file has any commas, and if not, if it has semi-colons instead. Of course, this would be a first simple implementation.

joetsoi commented 11 years ago

done as part of datastore install