few fixes here and there

This commit is contained in:
Miroslav Stampar
2010-05-28 12:47:03 +00:00
parent 7e78876f6a
commit f24187f251
3 changed files with 9 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ class Connector(GenericConnector):
self.initConnection()
try:
self.connector = MySQLdb.connect(host=self.hostname, user=self.user, passwd=self.password, db=self.db, port=self.port, connect_timeout=conf.timeout)
self.connector = MySQLdb.connect(host=self.hostname, user=self.user, passwd=self.password, db=self.db, port=self.port, connect_timeout=conf.timeout, use_unicode=True)
except MySQLdb.OperationalError, msg:
raise sqlmapConnectionException, msg[1]