Skip to content
Browse files

Switch to utf-8

  • Loading branch information...
1 parent 37104cc commit ecb63d7a28ba961df080cd43755526d8e7be2329 @singpolyma committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 wordpress.py
View
2 wordpress.py
@@ -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.
Something went wrong with that request. Please try again.