Skip to content

Commit

Permalink
connect to the database using UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Jul 11, 2012
1 parent 892fdaf commit 1a0a899
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def getConn():
conn = MySQLdb.connect (host = Config.host,
user = Config.username,
passwd = Config.password,
db = Config.database)
db = Config.database,
charset='utf8')
return conn
@staticmethod
def execute(c, sql, *args):
Expand Down

0 comments on commit 1a0a899

Please sign in to comment.