summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/db.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py
index ad32ac8..f7efc7c 100644
--- a/jfr_playoff/db.py
+++ b/jfr_playoff/db.py
@@ -1,4 +1,5 @@
import mysql.connector
+import sys
class PlayoffDB(object):
@@ -6,6 +7,8 @@ class PlayoffDB(object):
db_cursor = None
def __init__(self, settings):
+ reload(sys)
+ sys.setdefaultencoding("latin1")
self.database = mysql.connector.connect(
user=settings['user'],
password=settings['pass'],