Permalink
Browse files

Merge pull request #15 from camd/master

update connections to default to charset utf8
  • Loading branch information...
2 parents 92cd2b8 + 36d21c7 commit bb8abc53195187555186e64e112b3275a48929c4 @jeads committed Jun 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 datasource/hubs/MySQL.py
View
@@ -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)

0 comments on commit bb8abc5

Please sign in to comment.