diff options
author | emkael <emkael@tlen.pl> | 2018-01-22 18:34:09 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-22 18:34:09 +0100 |
commit | d20ee8df550eb0de822e536cbcba756fcbe340e1 (patch) | |
tree | 84de26373671ced0bc63626ae4e24a829d77931a /jfr_playoff | |
parent | b2a3bc8b7527425d40448ebbc1f1318e31c3861d (diff) |
Getting rid of MySQL error message encoding problems
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/db.py | 3 |
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'], |