Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from camd/master

update connections to default to charset utf8
  • Loading branch information...
commit bb8abc53195187555186e64e112b3275a48929c4 2 parents 92cd2b8 + 36d21c7
@jeads authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  datasource/hubs/MySQL.py
View
2  datasource/hubs/MySQL.py
@@ -69,12 +69,14 @@ def connect(self, host_type, db):
self.connection[host_type]['con_obj'] = MySQLdb.connect( host=self.conf[host_type]['host'],
user=self.conf[host_type]['user'],
passwd=self.conf[host_type].get('passwd', ''),
+ charset="utf8",
cursorclass=MySQLdb.cursors.DictCursor,
db=db)
else:
self.connection[host_type]['con_obj'] = MySQLdb.connect( host=self.conf[host_type]['host'],
user=self.conf[host_type]['user'],
passwd=self.conf[host_type].get('passwd', ''),
+ charset="utf8",
cursorclass = MySQLdb.cursors.DictCursor)
self.connection[host_type]['con_obj'].autocommit(False)
Please sign in to comment.
Something went wrong with that request. Please try again.