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

fixed utf-8 for in-memory voter file content, I think

parent 483e966a
No related branches found
No related tags found
No related merge requests found
...@@ -680,7 +680,7 @@ class VoterFile(models.Model): ...@@ -680,7 +680,7 @@ class VoterFile(models.Model):
# now we're looking straight at the content # now we're looking straight at the content
if self.voter_file_content: if self.voter_file_content:
voter_stream = StringIO.StringIO(self.voter_file_content) voter_stream = StringIO.StringIO(self.voter_file_content.encode('utf-8'))
else: else:
voter_stream = open(self.voter_file.path, "rU") voter_stream = open(self.voter_file.path, "rU")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment