Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Encodage utf-8 pour la lecture des fichier CSV StockEtablissement
Browse files Browse the repository at this point in the history
Fichier base SIRENE, déjà en utf-8.

close cquest#13
  • Loading branch information
Damien Garaud committed Apr 21, 2020
1 parent 6e95b41 commit 4a8da89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insee-sirene/geocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def trace(txt):

if len(sys.argv) > 2:
stock = False
sirene_csv = csv.reader(open(sys.argv[1], 'r', encoding='iso8859-1'),
sirene_csv = csv.reader(open(sys.argv[1], 'r', encoding='utf-8'),
delimiter=',')
sirene_geo = csv.writer(gzip.open(sys.argv[2], 'wt', compresslevel=9))
conn = None
Expand Down

0 comments on commit 4a8da89

Please sign in to comment.