Skip to content
Snippets Groups Projects
Commit 5b19b49d authored by Ben Adida's avatar Ben Adida
Browse files

trying different way of parsing unicode csv files

parent e1fed194
Branches
Tags v3.0.8
No related merge requests found
......@@ -407,7 +407,9 @@ def unicode_csv_reader(unicode_csv_data, dialect=csv.excel, **kwargs):
def utf_8_encoder(unicode_csv_data):
for line in unicode_csv_data:
yield line.encode('utf-8')
# FIXME: this used to be line.encode('utf-8'),
# need to figure out why this isn't consistent
yield line
class VoterFile(models.Model):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment