From 2bb6ed710154f1ef63defc6f0419cf11f720b7f7 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Sun, 30 Sep 2012 13:39:02 -0700
Subject: [PATCH] fixed utf-8 for in-memory voter file content, I think

---
 helios/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/models.py b/helios/models.py
index 28f1dc6..3947b64 100644
--- a/helios/models.py
+++ b/helios/models.py
@@ -680,7 +680,7 @@ class VoterFile(models.Model):
 
     # now we're looking straight at the 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:
       voter_stream = open(self.voter_file.path, "rU")
 
-- 
GitLab