[utils] Adding unicode_csv module
This commit is contained in:
6
scripts/geodata/unicode_csv.py
Normal file
6
scripts/geodata/unicode_csv.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import csv
|
||||||
|
|
||||||
|
|
||||||
|
def unicode_csv_reader(filename, **kw):
|
||||||
|
for line in csv.reader(filename, **kw):
|
||||||
|
yield [unicode(c, 'utf-8') for c in line]
|
||||||
Reference in New Issue
Block a user