Permalink
Browse files

Switch to utf-8

  • Loading branch information...
singpolyma committed Jul 9, 2010
1 parent 37104cc commit ecb63d7a28ba961df080cd43755526d8e7be2329
Showing with 1 addition and 1 deletion.
  1. +1 −1 wordpress.py
View
@@ -30,7 +30,7 @@ class Papercut_Storage:
"""
def __init__(self):
- self.conn = MySQLdb.connect(host=settings.dbhost, db=settings.dbname, user=settings.dbuser, passwd=settings.dbpass)
+ self.conn = MySQLdb.connect(host=settings.dbhost, db=settings.dbname, user=settings.dbuser, passwd=settings.dbpass, charset='utf8', use_unicode=True)
self.cursor = self.conn.cursor()
def get_message_body(self, headers):

0 comments on commit ecb63d7

Please sign in to comment.