Skip to content

Commit

Permalink
fixed UTF8 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed May 31, 2015
1 parent 6a1112e commit 0caaabc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/core_TS3db.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def connect(self):
"""
try:
mdb.threadsafety = 1
self.connection = mdb.connect(self.config['MySQL']['host'], self.config[
'MySQL']['user'], self.config['MySQL']['pass'], self.config['MySQL']['db'])
self.connection = mdb.connect(self.config['MySQL']['host'], self.config['MySQL']['user'], self.config['MySQL']['pass'], self.config['MySQL']['db'], charset='utf8')
except mdb.Error as e:
self.base.debprint("[MySQL] Error %d: %s" % (e.args[0], e.args[1]))
self.connection = False
Expand Down

0 comments on commit 0caaabc

Please sign in to comment.