Open scoates opened 2 years ago
FWIW:
❯ file -I scraped-data/emergency-rooms/quebec/Releve_horaire_urgences_7jours.csv
scraped-data/emergency-rooms/quebec/Releve_horaire_urgences_7jours.csv: application/csv; charset=iso-8859-1
Sorry for not looking at this sooner!
I'm not keen on --re-encode
as the option here. I prefer --encoding X
purely for consistency with my other tool sqlite-utils
: https://sqlite-utils.datasette.io/en/stable/cli-reference.html#insert
I honestly forget how this works. If you're happy with the other method, so am I. (-:
Can we merge this? I also encountered this issue and didn't see this PR so ended up with a similar fix but this wouldv'e saved me some time!
Discussed in https://github.com/simonw/git-history/discussions/50
I think I had two problems here, but they might be related:
commit.tree.blobs
was[]
here. I changed this to use thetree['filename']
notation--re-encode
Tests pass.